https://pulumi.com logo
Title
d

damp-school-17708

07/07/2021, 12:37 PM
Hello, I am getting a weird error doing pulumi up on an ubutu box running in aws
error: could not query backend for stacks: error listing stacks: could not list bucket: blob (code=Unknown): BucketRegionError: incorrect region, the bucket is not in 'us-west-1' region at endpoint ''
	status code: 301, request id: , host id:
if I do
aws s3 ls <s3://bucket-for-pulumi-state>
I get the content. No idea why this is happening, the box is in a different region/vpc but it should just work, and the basic aws s3 api shows the pulumi bucket just fine
b

brave-planet-10645

07/07/2021, 12:55 PM
What's the region set in your stack config file?
it's possible that the region that the AWS CLI is looking at is different
d

damp-school-17708

07/07/2021, 1:21 PM
aws:region: us-east-1 in pulumi.yaml
AWS_DEFAULT_REGION=us-west-1 in zsh env
ah
damn I had to copy and paste to notice!
:disguised_face:
b

brave-planet-10645

07/07/2021, 1:53 PM
There are so many places to set it, it's easy to miss