ECR Repository 생성하기
aws ecr create-repository \
--repository-name <ECR_REPO_Name> \
--region ap-northeast-2 \
--image-tag-mutability MUTABLE
# --image-tag-mutability IMMUTABLE
# --image-scanning-configuration scanOnPush=true
Shell
복사
ECR 로그인 하기
aws ecr get-login-password --region <Region> | docker login --username AWS --password-stdin <ACCOUNT_ID>.dkr.ecr.<Region>.amazonaws.com
Shell
복사
이미지 취약점 스캔 결과 가져오기
aws ecr describe-image-scan-findings --repository-name <ECR_REPO_Name> --image-id imageTag=<ImageTag> --query "imageScanFindings.findingSeverityCounts"
Shell
복사
이미지 태그 가져오기
aws ecr describe-images --repository-name <ECR_REPO_Name> --query "imageDetails[].imageTags[]"
Shell
복사

