Skip to content

Instantly share code, notes, and snippets.

@seventhskye
Created July 27, 2016 10:43
Show Gist options
  • Save seventhskye/051779b4a545cac27300a595dbff9638 to your computer and use it in GitHub Desktop.
Save seventhskye/051779b4a545cac27300a595dbff9638 to your computer and use it in GitHub Desktop.
Creates an Amazon Machine Image.
#!/bin/bash
aws ec2 create-image --instance-id $(curl -s http://169.254.169.254/latest/meta-data/instance-id) --name image-$(date +'%s')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment