Is there any example code / configuration using an...
# aws
l
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
I think in this particular case you just need to export the aws region environment variable
l
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.