hey folks - is it possible for the same stack to a...
# getting-started
m
hey folks - is it possible for the same stack to act as multiple different accounts during the same deployment ?
c
Based on your messages it sounds like you want to use multiple AWS account in the same deployment? If so, then yes. You can do that through a concept called explicit provider instances. You create instances of AWS Provider object with the account number you want. Then pass that instance as the value for
provider
resource option whenever you create a resource. Every resource in Pulumi takes resource options that allow you to control various things about that resource.
Also checkout this docs page for an example demonstrating this: https://www.pulumi.com/docs/concepts/resources/providers/ Of course, this is all relevant if you are indeed asking about using the multiple AWS accounts and not something else.
m
thank you so much 🙏