In CentOS7 - No package aws-cfn-bootstrap available

install aws-cfn-bootstrap redhat
aws-cfn-tools
cfn-init windows
amazon linux 2 aws-cfn-bootstrap
aws cloudformation ubuntu template
aws-cfn-bootstrap ubuntu
pkg_resources resolutionerror script scripts cfn-signal not found in metadata at none
cfnbootstrap

I'm trying to use AWS Cloud Formation template with cfn-signal in Cent OS 7. As per documentation, it is mentioned to install using

yum install -y aws-cfn-bootstrap
or using RPM..

But, none of them helps and just getting the following error message..

No package aws-cfn-bootstrap available.


Great, found some useful information from forum.. Then, tried the following in CentOS 7 as a sudo user.

yum update -y
yum install -y epel-release
yum install -y https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.amzn1.noarch.rpm
ln -s /usr/local/lib/python2.7/site-packages/cfnbootstrap /usr/lib/python2.7/site-packages/cfnbootstrap
ls /opt/aws/bin/

Now, I'm able to notice it installed successfully at /opt/aws/bin/

CentOS 7 and CloudFormation, 2015-02-03 16:36:01,788 DEBUG No packages specified pystache and python​-daemon both available in EPEL (yum -y install i having same issue, we have custom AMI centos 7 which doesn't have aws cfn bootstrap  Adding aws-cfn-bootstrap (CloudFormation helper scripts) to custom Linux AMIs As more and more of my CloudFormation (CF) stacks use a base image and CloudFormation::Init magic, it’s become imperative to have an AMI that has the helper scripts (cfn-signal, cfn-init, etc.) built-in.


You should try this:

rpm -Uvh https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.amzn1.noarch.rpm

Or

  1. You can also download the file:

https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz

  1. Extract it: tar -xzvf aws-cfn-bootstrap-latest.tar.gz

Also, for detailed steps try, AWS forum's solutions: https://forums.aws.amazon.com/thread.jspa?messageID=599647

CloudFormation Helper Scripts Reference, cfn-init: Use to retrieve and interpret resource metadata, install packages, create On previous Amazon Linux AMI versions, the aws-cfn-bootstrap package that  Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. In CentOS7 - No package aws-cfn-bootstrap available


This is my current (WORKING!) user data section which gets aws-cfn-bootstrap setup in Centos7.

Properties:
  UserData:
    'Fn::Base64':
      !Sub |
       #!/bin/bash
       yum -y update
       yum -y install wget
       yum -y --enablerepo=extras install epel-release
       yum -y install python-pip
       pip install pystache argparse python-daemon requests
       cd /opt
       curl -O https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz
       curl -O https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.amzn1.noarch.rpm
       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 /opt/aws
       mkdir /opt/aws/bin
       ln -s /usr/bin/cfn-hup /opt/aws/bin/cfn-hup
       set -o errexit
       /usr/bin/cfn-init -v --stack ${AWS::StackName} --resource EC2Instance --region ${AWS::Region}
       /usr/bin/cfn-signal --exit-code $? --stack ${AWS::StackName} --resource EC2Instance --region ${AWS::Region}

Cheers and Good luck!

Adding aws-cfn-bootstrap (CloudFormation helper scripts) to custom , As of CentOS 6.8, you can use aws-cfn-bootstrap-1.4-5.amzn1.noarch.rpm without having to juggle any prerequisites. CentOS 7. Not as easy. The template below is mostly useful for bug reports and support questions. Feel free to remove anything which doesn't apply to you and add more information where it makes sense. Also, before re


Setup CentOS server with AWS CFN bootstrap · GitHub, Setup CentOS server with AWS CFN bootstrap. aws-cfn.sh. #!/bin/bash. # Setup CentOS 7 host as AMI. # Update base OS update, and install EPEL repo and  No package libgtk-1.2.so.0 available. Package SDL-1.2.15-11.el7.i686 already installed and latest version Package libX11-1.6.0-2.1.el7.i686 already installed and latest version Package alsa-lib-1.0.27.2-3.el7.i686 already installed and latest version No package libbluetooth.so.2 available. No package libesd.so.0 available.


aws-cfn-bootstrap for Centos7 · GitHub, aws-cfn-bootstrap for Centos7. aws-cfn-bootstrap-centos7.sh. yum install -y epel-​release. yum install -y python-pip. cd /usr/bin. pip install  On previous Amazon Linux AMI versions, the aws-cfn-bootstrap package that contains the scripts is located in the Yum repository. Downloading Packages for Other Platforms For Linux/Unix distributions other than Amazon Linux AMI images and for Microsoft Windows (2008 or later), you can download the aws-cfn-bootstrap package.


Installing helper scripts on CentOS | Community, All the examplese given in CloudFormation courses are using amazon-ami. How can we install helper scripts on CentOS. https://s3.amazonaws.com/​cloudformation-examples/aws-cfn-bootstrap-latest.amzn1.noarch.rpm\n" I got the src rpm for aws-cfn-bootstrap and recompliled it which fixes all the paths in the package. Method #1: Install Extra Packages for Enterprise Linux repository configuration (recommended) Just type the following yum command on a CentOS 7 or RHEL 7: sudo yum install epel-release Fig.01: Installing epel-release package on a Centos 7. Note: If method #1 failed, try the following method #2 to install EPEL Repo.