Skip to main content
EXAMPLE

Configuration Context

Compute stack names from context values with a name template, and inspect how Atmos resolves configuration from multiple sources.

Stacks
cloudposse / atmos

Try it out

Copy the example into a new directory and make it your own:

atmos init examples/demo-context
cd demo-context

Follow the README for prerequisites and next steps.

See it in action

RECORDED DEMO
demo-context
 
Recorded from this example
Real commands. Real output.
README.md1.5 KB
View on GitHub

Example: Demo Context

Inspect how Atmos resolves configuration from multiple sources.

Learn more about Describe Config.

What You'll See

Try It

cd examples/demo-context

# Stack names are computed from context values via the name template
atmos describe config --format=yaml --query .stacks.name_template

# See the stack names it produces
atmos list stacks

# Inspect the resolved component configuration (--query focuses on vars)
atmos describe component demo -s acme-west-dev --query .vars

TIP

Run atmos describe config and atmos describe component demo -s acme-west-dev without --query to see the full resolved configuration.

Key Files

FilePurpose
atmos.yamlName template using context providers
stacks/deploy/Stack files with context values
stacks/mixins/Region-specific context values