Skip to content

Instantly share code, notes, and snippets.

@bvanderlugt
Last active October 2, 2017 17:58
Show Gist options
  • Save bvanderlugt/f93a1cd1b1d212105201ddc783ba678f to your computer and use it in GitHub Desktop.
Save bvanderlugt/f93a1cd1b1d212105201ddc783ba678f to your computer and use it in GitHub Desktop.
Amazon CLI trikz
# filter amis on region and name
aws ec2 describe-images --region us-west-2 --filters "Name=name,Values=rancheros-v1.1*" "Name=virtualization-type,Values=hvm" --query 'Images[*].Name'
# create key-pair and save to file
aws ec2 create-key-pair --key-name dummy --query "KeyMaterial" > dummy.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment