CloudFormation Configuration
This documentation previews the implementation in PR #3157.
The documentation-only revision does not register atmos aws cloudformation or its cfn alias.
Use a build containing that implementation before running these examples.
Tell Atmos where native aws/cloudformation component files live. This
project-wide setting keeps stack files focused on what to deploy, while
atmos.yaml defines where CloudFormation components are found. Stacks are
deployed directly through the AWS SDK for Go v2, so no aws CLI or
cfn/sam/Rain binary is required.
Configuration
The aws/cloudformation key can be quoted in YAML for readability; quoting is
not required, since / is not a YAML special character.
Configuration Reference
base_pathBase directory for native
aws/cloudformationcomponents. A component'stemplate:(and, when set,stack_policy.file:) resolve relative to its component directory under this base path. Defaults tocomponents/cloudformation.
Component-level fields — template, stack_name, parameters, capabilities,
tags, stack_policy, role_arn, notification_arns, disable_rollback,
termination_protection, timeout_in_minutes, source, provision, auth,
and dependencies — are configured per stack, not in atmos.yaml. See
CloudFormation stack configuration.
Region Resolution
CloudFormation API calls need an AWS region. Atmos resolves it in this order, most specific wins:
settings.aws_cloudformation.regionon the component- The active identity's region
- The AWS SDK's default credential/region chain (
AWS_REGION, shared config)
components:
"aws/cloudformation":
vpc:
settings:
aws_cloudformation:
region: us-west-2
# ...
There is no per-component account override outside stack sets — the account is always the active identity's account.
See the upcoming atmos aws cloudformation implementation
and the
CloudFormation stack configuration for
component-level fields.