Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Depends on #9633
Motivation
We initially discussed about keeping internal read-access of
EDGE_PORT
as an alias forGATEWAY_LISTEN[0].port
. Partly because it was used all over the place. However, after finally removing its usages in #9633, @simonrw suggested removingEDGE_PORT
altogether with 3.0. KeepingEDGE_PORT
would risk legacy usages leading to several networking consistency issues, especially when returning URLs manually.Changes
config.EDGE_PORT
and all remaining (test) usages.Read-access to the provided environment variable
EDGE_PORT
in compute services such as Lambda, EMR, Batch, ECS, etc will remain supported in LocalStack 3.0. Our networking migration guide introduces the deprecation path.TODO
What's left to do:
Impact Analysis
I didn't find any usages in the public extensions:
These extensions use other helper utils that we deprecated, hence providing a deprecation path.
I skimmed over several code searches using
gh search
(2023-11-15):gh search code "EDGE_PORT"
(124 results but valid occurrences and other Lambda read-only access will remain supported; I will migrate the remaining samples this week)gh search code "import EDGE_PORT" --language python
(5 usages, mostly localstack forks)gh search code "config.EDGE_PORT" --language python --limit 1000
(105 usages; skimmed over, mostly from not yet merged localstack or forks)Discussion
β Do you know any other implicit usages of
config.EDGE_PORT
?