https://pulumi.com logo
#typescript
Title
# typescript
p

plain-eye-9759

12/10/2019, 10:22 AM
Does Pulumi support something like config flattening, such that you could have something like
base.yaml
that
pulumi.dev.yaml
, and
pulumi.staging.yaml
can share some common values from the base?
t

thankful-optician-22583

12/10/2019, 11:52 AM
No not yet. from the last time I checked
w

white-balloon-205

12/10/2019, 1:43 PM
That’s right - this is tracked in https://github.com/pulumi/pulumi/issues/2307. Though note that because it’s just code - you can implement any logic you’d like for how to read and merge config. For example, if you wanted to alway read a
base.yaml
file you can do that. And if you want to allow Pulumi config to optionally overrode that - you can do that too. So you are less deeply dependent on Pulumi config natively supporting this (though we expect to do more here by default in the future).
👍 4
p

plain-eye-9759

12/10/2019, 3:24 PM
Okay, thanks
a

alert-businessperson-19752

11/01/2021, 3:19 AM
In a stack specific settings file (i.e.
Pulumi.dev.yml
), if location is set i.e.
azure-native:location
then resource group location is set automatically and location for resources is derived from resource group location. Now I am trying to apply common tag for all resources i.e. "`CreatedBy: Pulumi`". Is there any way to set common/global tags similar to "`azure-native:location`" ?