This message was deleted.
# aws
s
This message was deleted.
l
I'm looking for the equivalent of this Terraform configuration:
Copy code
terraform {
  backend "s3" {
    bucket = "bucket-in-another-account"
    role_arn = "arn:aws:iam::other-account-id:role/role-in-other-account-with-access-to-bucket"
  }
}
m
Yes, you’re referring to using multiple AWS provider instances, see this discussion: https://pulumi-community.slack.com/archives/C84L4E3N1/p1595517949114200
l
Yes, that is a solution, unfortunately it doesn't avoid my current problem. I've already deployed everything using the default provider. If I change from the default provider to an explicit provider pointing at the same account with the same creds, it wants to tear everything down and recreate them. That's my VPC, RDS, DB, AD, my EC2 instances.. it would be destructive. And there's all the extra work on the side, updating keys in vaults etc. I want to be able to use one provider for the backend, and a different provider that I don't pass into resources via the
provider
opts property. Which is what the Terraform code above achieves.