-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Remove legacy lambda provider #9543
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -242,6 +242,13 @@ def is_affected(self) -> bool: | |
"1.4.0", | ||
"This feature is marked for removal. Please use AWS client API to seed Kinesis streams.", | ||
), | ||
EnvVarDeprecation( | ||
"PROVIDER_OVERRIDE_LAMBDA", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding the provider override as a deprecation option helps users cleaning up their configuration |
||
"3.0.0", | ||
"This option is ignored because the legacy Lambda provider (v1) has been removed since 3.0.0. " | ||
"Please remove PROVIDER_OVERRIDE_LAMBDA and migrate to our new Lambda provider (v2): " | ||
"https://docs.localstack.cloud/user-guide/aws/lambda/#migrating-to-lambda-v2", | ||
), | ||
EnvVarDeprecation( | ||
"ES_CUSTOM_BACKEND", | ||
"0.14.0", | ||
|
@@ -304,23 +311,6 @@ def log_deprecation_warnings(deprecations: Optional[List[EnvVarDeprecation]] = N | |
affected_deprecations = collect_affected_deprecations(deprecations) | ||
log_env_warning(affected_deprecations) | ||
|
||
provider_override_lambda = os.environ.get("PROVIDER_OVERRIDE_LAMBDA") | ||
if provider_override_lambda and provider_override_lambda in ["v1", "legacy"]: | ||
env_var_value = f"PROVIDER_OVERRIDE_LAMBDA={provider_override_lambda}" | ||
deprecation_version = "2.0.0" | ||
# TODO[LambdaV1] adjust message or convert into generic deprecation for PROVIDER_OVERRIDE_LAMBDA | ||
deprecation_path = ( | ||
f"Remove {env_var_value} to use the new Lambda 'v2' provider (current default). " | ||
"For more details, refer to our Lambda migration guide " | ||
"https://docs.localstack.cloud/user-guide/aws/lambda/#migrating-to-lambda-v2" | ||
) | ||
LOG.warning( | ||
"%s is deprecated (since %s) and will be removed in upcoming releases of LocalStack! %s", | ||
env_var_value, | ||
deprecation_version, | ||
deprecation_path, | ||
) | ||
|
||
|
||
def deprecated_endpoint( | ||
endpoint: Callable, previous_path: str, deprecation_version: str, new_path: str | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,10 @@ | |
"KINESIS_PROVIDER", | ||
"KMS_PROVIDER", | ||
"LAMBDA_DOWNLOAD_AWS_LAYERS", | ||
# Irrelevant post v3 but intentionally tracked for some time | ||
"LAMBDA_EXECUTOR", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It might be interesting to know how many users still have legacy variables configured post v3 🤷 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can't hurt and we can still turn it off later 👍 |
||
"LAMBDA_PREBUILD_IMAGES", | ||
# Irrelevant post v3 but intentionally tracked for some time | ||
"LAMBDA_REMOTE_DOCKER", | ||
"LAMBDA_RUNTIME_EXECUTOR", | ||
"LEGACY_DIRECTORIES", | ||
|
@@ -50,8 +52,6 @@ | |
"HOSTNAME_FROM_LAMBDA", | ||
"HOST_TMP_FOLDER", | ||
"INIT_SCRIPTS_PATH", | ||
"LAMBDA_FALLBACK_URL", | ||
"LAMBDA_FORWARD_URL", | ||
"LEGACY_DIRECTORIES", | ||
"LEGACY_INIT_DIR", | ||
"LOCALSTACK_HOST", | ||
|
Uh oh!
There was an error while loading. Please reload this page.