Created
March 21, 2024 17:34
-
-
Save strazzere/887599b61f99cf7b52cb95da72b78341 to your computer and use it in GitHub Desktop.
Find most recent ubuntu image on aws for cloudformation
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
aws ec2 describe-images --region us-gov-west-1 \ ⇣62.5 KiB/s ⇡4.33 KiB/s 192.168.1.140 98.97.58.200 96% 150 Mbps | |
--filters "Name=name,Values=ubuntu-*-amd64*" \ | |
--query 'Images[*].[ImageId,CreationDate]' --output text \ | |
| sort -k2 -r \ | |
| head |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment