Remove unused image on AWS ECR
174
cat <<EOF > tmp
[default]
aws_access_key_id = YOUR_ACCESS_KEY
aws_secret_access_key = YOUR_SECRET_KEY
region = ap-southeast-1
output = json
EOF
base64_content=$(cat tmp | base64)
export AWS_API_KEYFILE=base64_content
REPO=Repository name
TAG_BRANCH=ex.dev production
KEEP_IMAGE=Remove image less than $KEEP_IMAGE
Content type
Image
Digest
sha256:0976e799a…
Size
118.6 MB
Last updated
almost 3 years ago
docker pull bankbetch/clear-aws-ecr:0.0.1