From c9973b712359adedc04aae09f2987572e12fc90a Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Tue, 19 Apr 2022 08:59:14 +0000 Subject: [PATCH] Add additional supported regions --- cleanup_amis.sh | 2 +- overlay/zdt/configs/zdt.conf | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cleanup_amis.sh b/cleanup_amis.sh index ad1a31e..8a4b846 100755 --- a/cleanup_amis.sh +++ b/cleanup_amis.sh @@ -4,7 +4,7 @@ TAG_FILTER="Name=tag:project,Values=zdt-alpine" #for r in $(aws ec2 describe-regions --query "Regions[].{Name:RegionName}" --output text); do -for r in eu-central-1 us-west-2; do +for r in ap-southeast-2 ca-central-1 eu-central-1 us-east-1 us-west-1 us-west-2; do amis=$(aws ec2 describe-images --region $r --owners self --output json --filters $TAG_FILTER | jq -r '.Images[].ImageId') for a in $amis; do aws ec2 deregister-image --region $r --image-id $a && echo "Deleted AMI $a in $r" diff --git a/overlay/zdt/configs/zdt.conf b/overlay/zdt/configs/zdt.conf index 5c199d5..0f97bd6 100644 --- a/overlay/zdt/configs/zdt.conf +++ b/overlay/zdt/configs/zdt.conf @@ -61,7 +61,11 @@ Dimensions { aws { include required("cloud/aws.conf") } aws.regions { ALL = false + ap-southeast-2 = true + ca-central-1 = true eu-central-1 = true + us-east-1 = true + us-west-1 = true us-west-2 = true } }