Skip to content

[Bug] Wrong region when destroying serverless #392

Closed
@adrianriobo

Description

@adrianriobo
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions