Skip to content

Commit

Permalink
Update README for looking up AMIs
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdeme committed Dec 7, 2023
1 parent f277e1e commit 1213a33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1213a33

Please sign in to comment.