https://pulumi.com logo
#general
Title
# general
r

rich-whale-93740

08/21/2023, 11:12 PM
Is it possible to create resources in multiple AWS account with one
pulumi up
(in a single Pulumi project)? For example, I need to create a Policy in a member account first, then create a PermissionSet in the Management account.
s

salmon-account-74572

08/21/2023, 11:16 PM
Absolutely. You’ll need two AWS providers; you can use the default provider and an explicit provider, or you can use two explicit providers. Each provider points to a different AWS account/profile. Specify the provider to be used when defining the resource, and Pulumi will handle creating the resources appropriately.
c

cuddly-computer-18851

08/22/2023, 2:39 AM
I'd suggest not using the default provider ( and disable it ), as its easy to inadvertently create resources in the wrong account.
```pulumidisable default providers
- aws```
3 Views