Elastic Container Registry (ECR)

Overview

Performs actions on ECR Scanner artifacts.

Commands

CommandDescription
regscale ecr import_ecrImport ECR scans, vulnerabilities and assets to RegScale from ECR JSON files
regscale ecr show_mappingShow the mapping file used during ecr imports.

regscale ecr import_ecr

Import ECR scans, vulnerabilities and assets to RegScale from ECR JSON files

regscale ecr import_ecr [OPTIONS]
FlagTypeRequiredDefaultDescription
--upload_file, --uploadbooleanNotrueWhether to upload the file to RegScale after processing. Default is True.
--disable_mapping, -dmbooleanNofalseWhether to disable the default mapping
--mappings_path, -mpathNo./mappings/ecrThe CLI will use the custom header from the provided mappings directory or file, example is ./mappings/ecr
--scan_date, -sddatetimeNo—The scan date of the file.
--regscale_ssp_id, -idintegerYes—The ID number from RegScale of the System Security Plan.
--folder_path, -fpathNo—File path to the folder containing ECR files to process to RegScale.Option is mutually exclusive with s3_bucket, s3_prefix.
--aws_session_token, --aws-session-tokentextNo—AWS session token for temporary credentials (optional).
--aws_secret_access_key, --aws-secret-access-keytextNo—AWS secret access key for S3 access (overrides profile).
--aws_access_key_id, --aws-access-key-idtextNo—AWS access key ID for S3 access (overrides profile).
--aws-profiletextNo—AWS profile for S3. If not set, uses direct credentials or config credentials.Option is mutually exclusive with folder_path.
--s3-prefixtextNo—Prefix (folder path) within the S3 bucketOption is mutually exclusive with folder_path.
--s3-buckettextNo—S3 bucket to download scan files fromOption is mutually exclusive with folder_path.

regscale ecr show_mapping

Show the mapping file used during ecr imports.

regscale ecr show_mapping [OPTIONS]
FlagTypeRequiredDefaultDescription
--file_path, -ffileYes—File path to the mapping file to display

Did this page help you?