Skip to main content
atmos stack inheritance
 
00:00.0 / 00:00.0
README.md1.5 KB
View on GitHub

Example: Demo Stacks

Inherit configuration across environments to eliminate duplication.

Learn more about Stack Inheritance.

What You'll See

Try It

cd examples/demo-stacks

# See how configuration is inherited (--query focuses on the vars section)
atmos describe component myapp -s dev --query .vars
atmos describe component myapp -s prod --query .vars

# Compare the resolved configuration across environments
atmos describe stacks --components myapp --sections vars

TIP

Drop --query/--sections to see the full resolved configuration, including imports, inheritance chain, and deps.

Key Files

FilePurpose
stacks/catalog/myapp.yamlBase component configuration (shared defaults)
stacks/deploy/dev.yamlDev environment with imports and overrides
stacks/deploy/prod.yamlProd environment with different overrides

Related Documentation