Sha256: cd7457158c74258c77256e55658fe0371679b5e2d4ba91c6b31c5ddd04175cb7
Contents?: true
Size: 743 Bytes
Versions: 16
Compression:
Stored size: 743 Bytes
Contents
Examples: $ aws-ec2 ami myrubyami --profile ruby --noop Launches an EC2 instance to create an AMI. An AMI creation script is appended to the end of the user-data script. The AMI creation script calls `aws ec2 create-image` and causes the instance to reboot at the end. It is useful to include to timestamp as a part of the AMI name with the date command. $ aws-ec2 ami ruby-2.5.0_$(date "+%Y-%m-%d-%H-%M") --profile ruby --noop The instance also automatically gets terminated and cleaned up by a termination script appended to user-data. It is recommended to use the `set -e` option in your user-data script so that if the script fails, the AMI creation script is never reached and the instance is left behind so you can debug.
Version data entries
16 entries across 16 versions & 1 rubygems