Reference
Details about all available CloudFormation-specific configuration options.
Stack Settings
Region - AWS region in which to create and execute the CloudFormation Stack.
Stack Name - The name for the CloudFormation Stack controlled by this Spacelift Stack.
Entry Template File - The path to the JSON or YAML file describing your root CloudFormation Stack. If you're generating CloudFormation code using a tool like SAM, point this to the file containing the generated template.
Template Bucket - S3 bucket to store CloudFormation templates in. Each created object will be prefixed by the current run ID like this:
<run id>/artifact_name
Special Environment Variables
CloudFormation Stack Parameters
Use this if your CloudFormation template requires parameters to be specified.
Each environment variable of the form CF_PARAM_xyz will be interpreted as the value for the parameter xyz.
For example, with this template snippet:
In order to specify the InstanceTypeParameter add an environment variable to your Stack CF_PARAM_InstanceTypeParameter and set its value to i.e. t2.micro
CloudFormation Stack Capabilities
Available Computed Environment Variables
To ease writing reusable scripts and hooks for your CloudFormation Stacks, the following environment variables are computed for each run: CF_METADATA_REGION
, CF_METADATA_STACK_NAME
, CF_METADATA_ENTRY_TEMPLATE_FILE
, CF_METADATA_TEMPLATE_BUCKET
.
Permissions
Last updated
Was this helpful?