Created
July 27, 2016 10:43
-
-
Save seventhskye/051779b4a545cac27300a595dbff9638 to your computer and use it in GitHub Desktop.
Creates an Amazon Machine Image.
This file contains hidden or 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
#!/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