linux_wiki:ec2_create_ami_templates

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
linux_wiki:ec2_create_ami_templates [2018/03/23 15:15]
billdozor [General AMI Creation Instructions]
linux_wiki:ec2_create_ami_templates [2018/03/23 15:19]
billdozor [Create Image]
Line 37: Line 37:
     * Type an Image description     * Type an Image description
     * Click "Create Image"     * Click "Create Image"
 +
 +----
 +
 +===== 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 's/apply_updates = no/apply_updates = yes/' /etc/yum/yum-cron.conf
 +
 +# Reboot instance
 +reboot
 +</code>
  
 ---- ----
  
  • linux_wiki/ec2_create_ami_templates.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)