This message was deleted.
# general
s
This message was deleted.
b
I think you'll just need two+ files,
Pulumi.<stack>.yaml
like this...
s
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
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
pulumi
.
If you could add more details about your use case and how you would like for it to work to https://github.com/pulumi/pulumi/issues/4665, that would be helpful.
b
@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
You can also set an explicit provider on resources, which is something terraform/terragrunt can't do