Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# get the latest public ubuntu bionic image from aws using the aws ruby sdk
AWS::EC2.images(
executable_users: ['all'],
filters: [{name: 'name', values: ['ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*']}]
).max_by(&:creation_date)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment