EXAMPLE
Configuration Context
Compute stack names from context values with a name template, and inspect how Atmos resolves configuration from multiple sources.
Try it out
- Install Atmos
- Try the example
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 Real commands. Real output.
README.md1.5 KB
View on GitHubExample: Demo Context
Inspect how Atmos resolves configuration from multiple sources.
Learn more about Describe Config.
What You'll See
- Context providers for dynamic values
- Name templates using context values
- Configuration merging from imports and mixins
Try It
cd examples/demo-context# Stack names are computed from context values via the name templateatmos describe config --format=yaml --query .stacks.name_template# See the stack names it producesatmos 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
| File | Purpose |
|---|---|
atmos.yaml | Name template using context providers |
stacks/deploy/ | Stack files with context values |
stacks/mixins/ | Region-specific context values |