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, -sddatetimeNoThe scan date of the file.
--regscale_ssp_id, -idintegerYesThe ID number from RegScale of the System Security Plan.
--folder_path, -fpathNoFile 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-tokentextNoAWS session token for temporary credentials (optional).
--aws_secret_access_key, --aws-secret-access-keytextNoAWS secret access key for S3 access (overrides profile).
--aws_access_key_id, --aws-access-key-idtextNoAWS access key ID for S3 access (overrides profile).
--aws-profiletextNoAWS profile for S3. If not set, uses direct credentials or config credentials.Option is mutually exclusive with folder_path.
--s3-prefixtextNoPrefix (folder path) within the S3 bucketOption is mutually exclusive with folder_path.
--s3-buckettextNoS3 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, -ffileYesFile path to the mapping file to display

Did this page help you?