Skip to content

Instantly share code, notes, and snippets.

@ygorth
Forked from JetFault/aws-cfn-bootstrap-centos7.sh
Last active August 22, 2018 16:13
Show Gist options
  • Save ygorth/e3dde8c466e6515c8d9ecd339db097f1 to your computer and use it in GitHub Desktop.
Save ygorth/e3dde8c466e6515c8d9ecd339db097f1 to your computer and use it in GitHub Desktop.
aws-cfn-bootstrap for CentOS 7
yum install -y epel-release
yum install -y python-pip
cd /usr/bin
pip install pystache
pip install argparse
pip install python-daemon
pip install requests
cd /opt
curl -O https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz
tar -xvpf aws-cfn-bootstrap-latest.tar.gz
cd aws-cfn-bootstrap-1.4/
python setup.py build
python setup.py install
ln -s /usr/init/redhat/cfn-hup /etc/init.d/cfn-hup
chmod 775 /usr/init/redhat/cfn-hup
mkdir -p /opt/aws/bin
ln -s /usr/bin/cfn-hup /opt/aws/bin/cfn-hup
ln -s /usr/bin/cfn-init /opt/aws/bin/cfn-init
ln -s /usr/bin/cfn-signal /opt/aws/bin/cfn-signal
ln -s /usr/bin/cfn-elect-cmd-leader /opt/aws/bin/cfn-elect-cmd-leader
ln -s /usr/bin/cfn-get-metadata /opt/aws/bin/cfn-get-metadata
ln -s /usr/bin/cfn-send-cmd-event /opt/aws/bin/cfn-send-cmd-event
ln -s /usr/bin/cfn-send-cmd-result /opt/aws/bin/cfn-send-cmd-result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment