Created
October 7, 2019 15:45
-
-
Save peterdenham/c6b2dade0968a00fe130f8267abaee7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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