Thanks I have edited my question so it is a clearer but what I am after is storing state in one account that can be used across other accounts. I don't think that will work with this setup?
g
gentle-diamond-70147
12/22/2020, 4:43 PM
I believe the only way to configure the S3 backend is with environment variables. So there's only one set of credentials available to pulumi to access the backend when invoking
@shy-toddler-33930 you can sort of do this by using the AWS environment variables for accessing your state store, then setting your provider configuration inside the stack. So for examples
Copy code
export AWS_PROFILE=shared_account
pulumi config set aws:profile=target_account
💯 1
billowy-army-68599
12/22/2020, 6:37 PM
You can also set an explicit provider on resources, which is something terraform/terragrunt can't do
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.