atmos aws cloudformation backend
Create, describe, update, delete, and list the S3 bucket referenced by a kind: aws/s3 provision.targets entry — the destination apply/deploy upload
oversized templates to when packaging is needed (see Delivery
Targets). These verbs
manage that bucket directly, the same way atmos terraform backend manages a
Terraform component's state backend, targeting the identical registered S3
backend type — no separate backend kind exists for CloudFormation.
Usage
atmos aws cloudformation backend create <component> --stack <stack>
atmos aws cloudformation backend describe <component> --stack <stack>
atmos aws cloudformation backend update <component> --stack <stack>
atmos aws cloudformation backend delete <component> --stack <stack> --force
atmos aws cloudformation backend list <component> --stack <stack>
Configuration
Declare a kind: aws/s3 target under the component's provision.targets:
components:
"aws/cloudformation":
vpc:
provision:
targets:
artifacts:
kind: aws/s3
bucket: my-org-cfn-templates
prefix: vpc
region: us-east-1
See Delivery Targets
for the full field reference, including how apply/deploy select and
package through this same target automatically when a template exceeds
CloudFormation's inline size limit.
Target Resolution
Every backend verb resolves the kind: aws/s3 target to operate on the same
way:
- Exactly one
kind: aws/s3target declared — used automatically, no--targetneeded. - More than one declared —
--target <name>is required to disambiguate (create/update/delete/describe;listshows every declared target at once, so it never needs--target). - None declared —
create/update/delete/describefail with a hint to add one.
Subcommands
Provision the S3 bucket used by the component's template-packaging backend.
Permanently delete the S3 bucket used by the component's template-packaging backend.
Show whether the component's template-packaging backend bucket currently exists.
List the component's template-packaging backend targets and whether each exists.
Reapply secure defaults to the component's template-packaging backend bucket.