Skip to content

Instantly share code, notes, and snippets.

@strazzere
Created March 21, 2024 17:34
Show Gist options
  • Save strazzere/887599b61f99cf7b52cb95da72b78341 to your computer and use it in GitHub Desktop.
Save strazzere/887599b61f99cf7b52cb95da72b78341 to your computer and use it in GitHub Desktop.
Find most recent ubuntu image on aws for cloudformation
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