https://pulumi.com logo
a

ancient-mouse-86780

05/20/2020, 5:11 PM
Hey everyone! Quick Pulumi/AWS question. It is possible to have a single Pulumi stack create a resources in multiple AWS accounts? I've seen the docs on assume-role, but don't see if it's possible to use a different AWS account number in the ARN of the resource being created/modified. For example, we want to control DNS from our main pulumi stack, but it's in a different AWS account than our other resources.
h

handsome-actor-1155

05/20/2020, 5:31 PM
You should be able to create multiple aws providers in your project, each with a different credential configuration that points to the the different accounts you want to access. Then you pass the appropriate provider to the resource you are managing for that account
a

ancient-mouse-86780

05/20/2020, 5:35 PM
Thanks @handsome-actor-1155! I'll check it out..