Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove deprecated config DEFAULT_REGION #9375

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

Merged
merged 11 commits into from
Oct 27, 2023

Conversation

viren-nadkarni
Copy link
Member

@viren-nadkarni viren-nadkarni commented Oct 18, 2023

Motivation

The DEFAULT_REGION environment config variable was used in early years of LocalStack when multi-region was unsupported. It has since been deprecated.

This PR removes this config variable for the upcoming major release.

@viren-nadkarni viren-nadkarni added the semver: major Breaking changes which can be included in a major release only label Oct 18, 2023
@viren-nadkarni viren-nadkarni self-assigned this Oct 18, 2023
@localstack-bot
Copy link
Contributor

Currently, only minor and patch changes are allowed on master. Your PR labels (semver: major) indicate that it cannot be merged into the master at this time.

@github-actions
Copy link

github-actions bot commented Oct 18, 2023

LocalStack Community integration with Pro

       2 files         2 suites   1h 6m 16s ⏱️
2 287 tests 1 708 ✔️ 579 💤 0
2 288 runs  1 708 ✔️ 580 💤 0

Results for commit 27932df.

♻️ This comment has been updated with latest results.

@viren-nadkarni viren-nadkarni force-pushed the remove-default-region branch 2 times, most recently from 5606482 to d4b8bc1 Compare October 18, 2023 09:53
@viren-nadkarni viren-nadkarni changed the base branch from master to release/v3.0 October 24, 2023 09:34
@viren-nadkarni viren-nadkarni marked this pull request as ready for review October 24, 2023 09:40
Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am glad we are finally trying to get rid of the DEFAULT_REGION.
Unfortunately, it seems that we have to find an alternative for the ARN partition rewriting...
Besides that, I only found some minor things (like that we should still warn the user that they are using a variable that doesn't have an effect anymore)...

Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing the comments, and cleaning up all the usages! This is a great step forward with the multi-region support, and to make sure that the region is properly handled for all requests. 🚀

@viren-nadkarni viren-nadkarni merged commit 76f2a3e into release/v3.0 Oct 27, 2023
@viren-nadkarni viren-nadkarni deleted the remove-default-region branch October 27, 2023 11:14
@alexrashed alexrashed mentioned this pull request Oct 27, 2023
20 tasks
joe4dev pushed a commit that referenced this pull request Nov 6, 2023
joe4dev pushed a commit that referenced this pull request Nov 6, 2023
joe4dev pushed a commit that referenced this pull request Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: major Breaking changes which can be included in a major release only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants