From 1213a331abfde542ee35e78429a3bded663c3f33 Mon Sep 17 00:00:00 2001 From: peterdeme Date: Thu, 7 Dec 2023 14:03:00 +0100 Subject: [PATCH] Update `README` for looking up AMIs --- aws/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aws/README.md b/aws/README.md index fe145ff..3fcc390 100644 --- a/aws/README.md +++ b/aws/README.md @@ -13,10 +13,12 @@ Use the `awscli` to get the latest AMI ```shell aws ec2 describe-images \ --owners 643313122712 \ - --filters "Name=name,Values=spacelift-*" \ + --filters "Name=name,Values=spacelift-*" "Name=architecture,Values=x86_64" \ --query 'sort_by(Images, &CreationDate)[-1]' ``` +Architecture could be either `x86_64` or `arm64`. + #### Terraform Use a terraform data source to retrieve the latest AMI