-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Add fallback partition config option for ARN partition rewriter #9482
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
Conversation
a5894b6
to
ece27e4
Compare
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. |
ece27e4
to
0a317eb
Compare
c97ddc3
to
85abf31
Compare
0a317eb
to
451a0b2
Compare
451a0b2
to
54d03f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! The code is nice and clean! Thanks for addressing this in order to finally be able to remove the DEFAULT_REGION
. 🚀 🧹
Motivation
The ARN partition rewriter depends on the deprecated environment config variable
DEFAULT_REGION
. It uses this to determine which partition to use as a fallback.This is preventing us from removing the
DEFAULT_REGION
config option with the upcoming major release.Implementation
This PR introduces a new config option
ARN_PARTITION_FALLBACK
which can be used to set which partition to use as fallback. It defaults toaws
, which is identical to old behaviour where it would be determined from theus-east-1
region.The
DEFAULT_REGION
config option will no longer have any effect on the rewriter.Acceptance of this PR will entail an update to enterprise image build steps.
Tests
Slightly tweaks existing tests to assert the new behaviour.