hello, we're trying to standardize on making every...
# atmos
b
hello, we're trying to standardize on making every component declare a standard instance and a dr instance of said component. So under stacks/catalog/network/default.yaml for example, we'd declare our VPC twice referencing components/terraform/network as the component. Now under stacks/deploy/dev.yaml we import our stacks/catalog/network and in the dev.yaml, we'd like to be able to toggle that DR instance on or off. The idea is that every environment has to opt out of provisioning a DR environment. What approach would you recommend to address this? We've had trouble getting a variable passed over to the metadata.enabled because anything we pass gets converted to a string and enabled needs a bool
e
We've had trouble getting a variable passed over to the metadata.enabled because anything we pass gets converted to a string and enabled needs a bool
That would be not intentional
Can you share how you express it?
Have you tried using
!template
?
b
I think my coworker was using yaml anchors, but I'll look at !template and see if that gets us past this issue
e
Using
!template
It's possible to preserve the data type
But if it doesn't preserve it for some reason, please let me know and we can look into seeing if we can reproduce that for booleans