Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux_wiki:ec2_create_ami_templates [2018/03/23 15:15] billdozor created |
linux_wiki:ec2_create_ami_templates [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 12: | Line 12: | ||
====== General AMI Creation Instructions ====== | ====== General AMI Creation Instructions ====== | ||
- | Launch a normal EC2 instance | + | ===== Launch a normal EC2 instance |
* **Choose AMI**: **This matters** | * **Choose AMI**: **This matters** | ||
* Select the OS that you want the image to be modeled after | * Select the OS that you want the image to be modeled after | ||
Line 30: | Line 31: | ||
* Launch Instance, Login, Customize (install/ | * Launch Instance, Login, Customize (install/ | ||
- | Create Image | + | ===== Create Image ===== |
* In AWS Console, select the instance | * In AWS Console, select the instance | ||
* Click " | * Click " | ||
Line 36: | 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 | ||
+ | </ | ||
---- | ---- | ||