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

little-cartoon-10569

05/28/2020, 5:06 AM
Is there any example code / configuration using an S3 backend and/or the AWS SDK at the same time as Pulumi? I'm getting
error: error listing stacks: could not list bucket: blob (code=Unknown): MissingRegion: could not find region configuration
and don't know how to start diagnosing.
Confirmed that it's my S3 remote state that's not configured correctly, ignore the AWS SDK bit.
b

billowy-army-68599

05/28/2020, 2:30 PM
I think in this particular case you just need to export the aws region environment variable
l

little-cartoon-10569

05/28/2020, 8:32 PM
Good hint. It was actually AWS_PROFILE that was needed, that provides the AWS_REGION to the state-accessing code. I'd forgotten about it since I was moving from app.pulumi.com and just had PULUMI_ACCESS_TOKEN set.