Enable ECR Vulnerability Image scanning

AWS User Guide Image scanning

Simple script to enable for all of our ECR repos

for repo in `aws ecr describe-repositories |jq -r '.repositories[].repositoryName'`; do 
    aws --profile=sumo ecr put-image-scanning-configuration \
        --repository-name $repo \
        --image-scanning-configuration scanOnPush=true

Do you have any question to us?

Contact us and we'll get back to you as soon as possible.