From 67281e2931295d74ce51e9850d01b0e09a6ce15d Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Fri, 19 Dec 2025 10:02:54 +0100 Subject: [PATCH] chore(aws/ecr): add commands to select scanning backend --- knowledge base/cloud computing/aws/ecr.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/knowledge base/cloud computing/aws/ecr.md b/knowledge base/cloud computing/aws/ecr.md index 19ae438..9602311 100644 --- a/knowledge base/cloud computing/aws/ecr.md +++ b/knowledge base/cloud computing/aws/ecr.md @@ -68,6 +68,12 @@ docker pull '123456789012.dkr.ecr.eu-west-1.amazonaws.com/quay/argoproj/argocd:v # E.g., 'library/alpine' instead of just 'alpine'. docker pull '123456789012.dkr.ecr.eu-south-1.amazonaws.com/docker-hub/library/nginx:perl' docker pull '123456789012.dkr.ecr.us-west-2.amazonaws.com/docker-hub/grafana/grafana' + +# Check what ECR Basic Scanning technology is used by the account. +aws ecr get-account-setting --name 'BASIC_SCAN_TYPE_VERSION' --query 'value' --output 'text' +# Change it. +aws ecr put-account-setting --name 'BASIC_SCAN_TYPE_VERSION' --value 'AWS_NATIVE' +aws ecr put-account-setting --name 'BASIC_SCAN_TYPE_VERSION' --value 'CLAIR' ``` ```sh