atmos stack set
Set a component-relative value for a component in a stack. Atmos uses provenance to find the manifest file that defines the effective value and edits that file in place, preserving comments, anchors/aliases, Atmos YAML functions, and Go templates.
info
atmos stack set is an alias for atmos stack config set, the canonical form.
Usage
atmos stack set <path> <value> -s <stack> -c <component> [--type <type>] [--file <manifest>]
Examples
# Set the value where it currently resolves from.
atmos stack set vars.region us-west-2 -s plat-ue2-prod -c vpc
# Typed value.
atmos stack set settings.spacelift.workspace_enabled true --type=bool -s plat-ue2-prod -c vpc
# Edit (or create the key in) a specific manifest.
atmos stack set vars.new_flag yes --file stacks/deploy/prod.yaml -s plat-ue2-prod -c vpc