atmos aws cloudformation apply
Create or update the CloudFormation stack for a component: create (or reuse)
a changeset and execute it. After a successful apply, Atmos applies the
component's stack_policy (if set) and renders the stack's Outputs — the
same view output renders on
demand.
Usage
atmos aws cloudformation apply <component> --stack <stack> [options]
atmos aws cloudformation apply vpc -s plat-ue2-dev
Skip the interactive confirmation prompt:
atmos aws cloudformation apply vpc -s plat-ue2-dev --auto-approve
Apply all or affected components in dependency order:
atmos aws cloudformation apply --all -s plat-ue2-dev
atmos aws cloudformation apply --affected --base origin/main
Apply components filtered by tags or labels (composes with --all/--affected to narrow the selected set further):
atmos aws cloudformation apply --all --tags production,tier-1
atmos aws cloudformation apply --affected --labels cost-center=platform
Flags
--stack,-s(required for a single component)- Atmos stack. Required when operating on a single component; optional (and used only to narrow the selected set) with
--all/--affected. --target(optional)- Provision target to deliver to. Defaults to
provision.default, otherwise the implicit direct-deploy target. --auto-approve(optional)- Skip the interactive confirmation prompt. Without it,
applyprompts for confirmation on a TTY before executing the changeset. --all(optional)- Apply all
aws/cloudformationcomponents in dependency order. --affected(optional)- Apply affected
aws/cloudformationcomponents and their dependencies. --base(optional)- Git base ref or SHA to compare against for affected detection:
--base origin/main. Used with--affected. --include-dependents(optional)- With
--affected, include dependentaws/cloudformationcomponents. --tags(optional)- Filter by tags (comma-separated, matches any):
--tags=production,tier-1. Composes with--all/--affectedto narrow the selected set further; cannot be combined with a single component argument. --labels(optional)- Filter by labels (comma-separated
key=valueorkey:valuepairs, matches all):--labels=cost-center=platform,compliance=sox. Composes with--all/--affected/--tags; cannot be combined with a single component argument.
note
atmos aws cloudformation deploy is an alias for apply
that defaults --auto-approve to true. Both fire the
before.aws/cloudformation.apply/after.aws/cloudformation.apply hook events.