Closed
Description
stderr: error: read ".pulumi/meta.yaml": blob (key ".pulumi/meta.yaml") (code=Unknown): BucketRegionError: incorrect region, the bucket is not in 'eu-west-3' region at endpoint '', bucket is in 'us-east-1' region
Main problem is backed url is tied to a specific region, and somehow that information is not being passed when destroying from serverless on a different region. Actually the execution includes an env AWS_REGION
with current region which is causing the error.
Hint use https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/s3#Client.HeadBucket to get the region for the backedURL bucket and use it when setting credentials on AWS on destroy operation