Last active
March 27, 2021 07:07
-
-
Save JetFault/cfb677abde9882f2d830e64aabb378b9 to your computer and use it in GitHub Desktop.
aws-cfn-bootstrap for Centos7
This file contains 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
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 | |
cd /opt | |
mkdir aws | |
cd aws | |
mkdir 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
Bootstrap script for CentOS 7 to download AWS CFN bootstrap scripts.