💾 Archived View for cfdocs.wetterberg.nu › cfn-helper-scripts-reference.gemini captured on 2024-08-25 at 01:58:23. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
AWS CloudFormation provides the following Python helper scripts that you can use to install software and start services on an Amazon EC2 instance that you create as part of your stack:
You call the scripts directly from your template. The scripts work in conjunction with resource metadata that's defined in the same template. The scripts run on the Amazon EC2 instance during the stack creation process.
The scripts are not executed by default. You must include calls in your template to execute specific helper scripts.
The AWS CloudFormation helper scripts are preinstalled on Amazon Linux AMI images.
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.
Version 2.0-1 and above of the helper scripts support Python 3.4 and above. If you need helper scripts that support an earlier version of Python, see Release History for CloudFormation Helper Scripts 1\.4.
Release History for CloudFormation Helper Scripts 1.4
| File format | Download URL |
| --- | --- |
| TAR.GZ | https://s3\.amazonaws\.com/cloudformation\-examples/aws\-cfn\-bootstrap\-py3\-latest\.tar\.gz Uses the Python easy-install tools. To complete the installation for Ubuntu, you must create a symlink: `ln -s /root/aws-cfn-bootstrap-latest/init/ubuntu/cfn-hup /etc/init.d/cfn-hup` |
| ZIP | https://s3\.amazonaws\.com/cloudformation\-examples/aws\-cfn\-bootstrap\-py3\-latest\.zip |
| EXE | 32-bit Windows: https://s3\.amazonaws\.com/cloudformation\-examples/aws\-cfn\-bootstrap\-py3\-latest\.exe 64-bit Windows: https://s3\.amazonaws\.com/cloudformation\-examples/aws\-cfn\-bootstrap\-py3\-win64\-latest\.exe |
https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz
https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.zip
https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.exe
https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-win64-latest.exe
By default, helper scripts do not require credentials, so you do not need to use the `--access-key`, `--secret-key`, `--role`, or `--credential-file` options. However, if no credentials are specified, AWS CloudFormation checks for stack membership and limits the scope of the call to the stack that the instance belongs to.
If you choose to specify an option, we recommend that you specify only one of the following:
If you do specify an option, keep in mind which permissions the various helper scripts require:
cloudformation:DescribeStackResource
For more information on using AWS CloudFormation-specific actions and condition context keys in IAM policies, see Controlling access with AWS Identity and Access Management.
Controlling access with AWS Identity and Access Management
The helper scripts are updated periodically. If you use the helper scripts, ensure that your launched instances are using the latest version of the scripts:
For the version history of the aws-cfn-bootstrap package, see Release history for AWS CloudFormation helper scripts.
Release history for AWS CloudFormation helper scripts