-
-
Save nathantsoi/8d66209de194d0962d99 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We need the latest epel-release for a RHEL/Centos specific cloud-init | |
curl -O http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
rpm -Uvh epel-release-6-8.noarch.rpm | |
# After this finishes you can build an AMI that will process the user data | |
# with cloud-init. You may also be interested in taking a look at the config | |
# file at /etc/cloud/cloud.cfg | |
yum install -y cloud-init | |
# edits /etc/cloud/cloud.cfg | |
# dont disable root | |
disable_root: 0 | |
# userdata scripts | |
datasource_list: [Ec2] | |
datasource: | |
Ec2: | |
metadata_urls: ['http://169.254.169.254'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment