Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Wrong region when destroying serverless #392

Open
adrianriobo opened this issue Jan 29, 2025 · 0 comments · May be fixed by #382
Open

[Bug] Wrong region when destroying serverless #392

adrianriobo opened this issue Jan 29, 2025 · 0 comments · May be fixed by #382

Comments

@adrianriobo
Copy link
Collaborator

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

adrianriobo added a commit to adrianriobo/mapt that referenced this issue Jan 30, 2025
adrianriobo added a commit to adrianriobo/mapt that referenced this issue Jan 30, 2025
adrianriobo added a commit to adrianriobo/mapt that referenced this issue Jan 30, 2025
adrianriobo added a commit to adrianriobo/mapt that referenced this issue Jan 30, 2025
adrianriobo added a commit to adrianriobo/mapt that referenced this issue Jan 31, 2025
@adrianriobo adrianriobo linked a pull request Jan 31, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant