Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:ec2_create_ami_templates [2018/03/23 15:15] billdozor [General AMI Creation Instructions] |
linux_wiki:ec2_create_ami_templates [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 37: | Line 37: | ||
* Type an Image description | * Type an Image description | ||
* Click " | * Click " | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Customization Examples ===== | ||
+ | |||
+ | Customization examples that could be baked into an EC2 instance template. | ||
+ | |||
+ | \\ | ||
+ | Create an auto updating instance | ||
+ | <code bash> | ||
+ | #!/bin/bash | ||
+ | |||
+ | # Update right after launch | ||
+ | yum -y update | ||
+ | |||
+ | # Install bash-completion and yum-cron | ||
+ | yum -y install bash-completion vim yum-cron | ||
+ | |||
+ | # Set to auto update daily | ||
+ | sed -i ' | ||
+ | |||
+ | # Reboot instance | ||
+ | reboot | ||
+ | </ | ||
---- | ---- | ||