Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand the AMI cleaning pipeline to all regions #1415

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .buildkite/pipeline.cleanamis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,28 @@ steps:
env:
DRY_RUN: true
AWS_REGION: "{{matrix}}"
# list of regions should match .buildkite/steps/copy.sh
matrix:
- "us-east-1"
- "us-east-2"
- "us-west-1"
- "us-west-2"
- "af-south-1"
- "ap-east-1"
- "ap-south-1"
- "ap-northeast-2"
- "ap-northeast-1"
- "ap-southeast-2"
- "ap-southeast-1"
- "ca-central-1"
- "eu-central-1"
- "eu-west-1"
- "eu-west-2"
- "eu-south-1"
- "eu-west-3"
- "eu-north-1"
- "me-south-1"
- "sa-east-1"
plugins:
- aws-assume-role-with-web-identity#v1.1.0:
role-arn: arn:aws:iam::172840064832:role/pipeline-buildkite-elastic-stack-for-aws-ami-cleaner
Expand Down
2 changes: 2 additions & 0 deletions .buildkite/steps/copy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ if [[ -z "${BUILDKITE_AWS_STACK_BUCKET}" ]]; then
exit 1
fi

# to ensure old images are garbage collected, the list of regions should
# match .buildkite/pipeline.cleanamis.yaml
ALL_REGIONS=(
us-east-1
us-east-2
Expand Down