I'm reviewing the atmos stack concept and inherita...
# atmos
m
I'm reviewing the atmos stack concept and inheritance. In the sample layout, the idea is that _default.yaml say under acme OU will contain default configs such as OU name: acme. You can continue defining variables and grouping them under the folder structure which reflects some hierarchy structure. For stacks that actually will be deployed, you'll need a stack yaml file that is "made" of the assorted mixins (config snippets), defaults yaml, etc. So essentially, you'll have a ton of yaml with small config snippets. The actual stack you use to deploy an actual service (deploy a generic webserver) will likely contain a ton of imports?
e
I think there's a balance.
✅ 1
Overly dry configuration leads to complexity, and too many nest imports adds cognative load.
Don't use mixins unless you need them and the concepts solve your use-case
So essentially, you'll have a ton of yaml with small config snippets
No, not necessarily; that's a design choice.
In the sample layout, the idea is that _default.yaml say under acme OU will contain default configs such as OU name: acme.
Correct
For stacks that actually will be deployed, you'll need a stack yaml file that is "made" of the assorted mixins (config snippets), defaults yaml, etc.
Correct, but a stack doesn't have to have any imports.
Imports are a way to DRY up the configuration.
For stacks that actually will be deployed, you'll need a stack yaml file that is "made" of the assorted mixins (config snippets), defaults yaml, etc.
No, maybe it would look like this:
Copy code
imports:
- catalog/webserver

components:
  terraform:
    webserver:
      vars:
        #override the memory setting passed to terraform
        mem: 2048
We have a reference of design patterns we've collected over the years
The amazing thing when you use these patterns, for example, for multi-region, is you can deploy an architecture spanning 15 regions, and not change a line of terraform./
this means it's possible to create highly reusable, testable components, then deploy them in any way
This keeps the architecture (aka configuration) separate from the business logic (terraform root modules).
m
I think I got the picture. I will say the documentation you guys made is very well made.