Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get latest Alpine AMI
#! /bin/bash
# get latest alpine linux AMI
aws ec2 describe-images --output text --filters Name=owner-id,Values=538276064493 Name=name,Values='alpine-ami-3.13*-x86_64*' Name=architecture,Values=x86_64 Name=state,Values=available --query 'max_by(Images[], &CreationDate).ImageId'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment