Table of Contents

EC2: Create AMI Templates

General Information

Custom Amazon Machine Images (VM Templates).

Checklist


General AMI Creation Instructions

Launch a normal EC2 instance

Create Image


Customization Examples

Customization examples that could be baked into an EC2 instance template.


Create an auto updating instance

#!/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 's/apply_updates = no/apply_updates = yes/' /etc/yum/yum-cron.conf
 
# Reboot instance
reboot