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

lemon-lamp-41193

11/11/2021, 1:16 AM
Hello! Is it possible to define a region for the backend s3 bucket url (within
backend=auto.ProjectBackend(url="<s3://pulumistate/>")
)? I have a central bucket for managing state but it throws an error when deploying a new instance in another region.
Copy code
could not create stack: could not list bucket: blob (code=Unknown): BucketRegionError: incorrect region, the bucket is not in 'us-west-1' region
l

little-cartoon-10569

11/11/2021, 1:47 AM
The backend and provider regions are not related. You can, and should, specify them separately. The backend does not use any provider that you manage, it uses only env vars like AWS_PROFILE and AWS_REGION.
l

lemon-lamp-41193

11/11/2021, 1:54 AM
Aha, makes sense. I can work with that. Thanks for the clarification!
👍 1
5 Views