fast-vegetable-68654
05/09/2021, 7:04 PMif (config.accountName === "ops") {...}
or is that even possible?
I'm coming from TF and am possibly trying to fit Pulumi to the patterns in TF and that may be a bad idea. Any guidance would be great!important-sandwich-62391
05/09/2021, 7:53 PMfast-vegetable-68654
05/09/2021, 8:32 PMroot
aws account. I don't/can't create those resources in the other accounts like dev
or ops
so I'd wrap those resources and exports in conditional that checks if the stack is the root account stack. Then when I need to access the account ids for the various accounts in the IAM roles for the member accounts, I would just reference the root account stack outputs. I guess all of this can be done in the same project using different stacks. I worry about the complexity at scale, but I haven't come across any documentation or examples of this. Again, this is just me applying the patterns I learned from terragrunt/terraform and there is probably a different patten in Pulumi that's better.