colossal-ice-49128
08/20/2021, 9:49 PMPulumi.us-Production
and Pulumi.eu-Production
right? The other way is to do it in code but I don’t think that fits nicely with the existing configuration model.bored-oyster-3147
08/20/2021, 10:03 PMComponentResource
and then instead declare 1 of those for each region at the top of your stack. This would allow you to have a single Production
stack.
Or just do separate stack configsComponentResource
as I mentioned, and then you could have your config contain a list of regions to deploy into. Then your Stack
code could loop on those and declare an instance of your ComponentResource
for each of them. That way your Staging
stack which might only need 1 region could just be a config changecolossal-ice-49128
08/20/2021, 10:12 PMgreat-sunset-355
08/22/2021, 7:43 AMPulumi.production.yaml
us-region:config_key: value
eu-region:config_key: value
then in code:
us_config = pulumi.Config('us-region')
eu-config = pulumi.Config('eu-region')
bored-oyster-3147
08/22/2021, 6:41 PM