Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions localstack/deprecations.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,62 +181,62 @@ def is_affected(self) -> bool:
"LAMBDA_EXECUTOR",
"2.0.0",
"This configuration is obsolete with the new lambda provider "
"https://docs.localstack.cloud/references/lambda-provider-v2/\n"
"https://docs.localstack.cloud/user-guide/aws/lambda/#migrating-to-lambda-v2\n"
"Please mount the Docker socket /var/run/docker.sock as a volume when starting LocalStack.",
),
EnvVarDeprecation(
"LAMBDA_STAY_OPEN_MODE",
"2.0.0",
"Stay open mode is the default behavior in the new lambda provider "
"https://docs.localstack.cloud/references/lambda-provider-v2/",
"https://docs.localstack.cloud/user-guide/aws/lambda/#migrating-to-lambda-v2",
),
EnvVarDeprecation(
"LAMBDA_REMOTE_DOCKER",
"2.0.0",
"The new lambda provider copies zip files by default and automatically configures hot reloading "
"https://docs.localstack.cloud/references/lambda-provider-v2/",
"https://docs.localstack.cloud/user-guide/aws/lambda/#migrating-to-lambda-v2",
),
EnvVarDeprecation(
"LAMBDA_CODE_EXTRACT_TIME",
"2.0.0",
"Function creation now happens asynchronously in the new lambda provider "
"https://docs.localstack.cloud/references/lambda-provider-v2/",
"https://docs.localstack.cloud/user-guide/aws/lambda/#migrating-to-lambda-v2",
),
EnvVarDeprecation(
"LAMBDA_DOCKER_DNS",
"2.0.0",
"This feature is currently not supported in the new lambda provider "
"https://docs.localstack.cloud/references/lambda-provider-v2/",
"https://docs.localstack.cloud/user-guide/aws/lambda/#migrating-to-lambda-v2",
),
EnvVarDeprecation(
"LAMBDA_CONTAINER_REGISTRY",
"2.0.0",
"The new lambda provider uses LAMBDA_RUNTIME_IMAGE_MAPPING instead "
"https://docs.localstack.cloud/references/lambda-provider-v2/",
"https://docs.localstack.cloud/user-guide/aws/lambda/#migrating-to-lambda-v2",
),
EnvVarDeprecation(
"LAMBDA_FALLBACK_URL",
"2.0.0",
"This feature is not supported in the new lambda provider "
"https://docs.localstack.cloud/references/lambda-provider-v2/",
"https://docs.localstack.cloud/user-guide/aws/lambda/#migrating-to-lambda-v2",
),
EnvVarDeprecation(
"LAMBDA_FORWARD_URL",
"2.0.0",
"This feature is not supported in the new lambda provider "
"https://docs.localstack.cloud/references/lambda-provider-v2/",
"https://docs.localstack.cloud/user-guide/aws/lambda/#migrating-to-lambda-v2",
),
EnvVarDeprecation(
"HOSTNAME_FROM_LAMBDA",
"2.0.0",
"This feature is currently not supported in the new lambda provider "
"https://docs.localstack.cloud/references/lambda-provider-v2/",
"https://docs.localstack.cloud/user-guide/aws/lambda/#migrating-to-lambda-v2",
),
EnvVarDeprecation(
"LAMBDA_XRAY_INIT",
"2.0.0",
"The X-Ray daemon is always initialized in the new lambda provider "
"https://docs.localstack.cloud/references/lambda-provider-v2/",
"https://docs.localstack.cloud/user-guide/aws/lambda/#migrating-to-lambda-v2",
),
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def prepare_version(cls, function_version: FunctionVersion) -> None:
"Failed to pull Docker image because Docker is not available in the LocalStack container "
"but required to run Lambda functions. Please add the Docker volume mount "
'"/var/run/docker.sock:/var/run/docker.sock" to your LocalStack startup. '
"https://docs.localstack.cloud/references/lambda-provider-v2/#docker-not-available"
"https://docs.localstack.cloud/user-guide/aws/lambda/#docker-not-available"
)
raise e
if config.LAMBDA_PREBUILD_IMAGES:
Expand All @@ -425,7 +425,7 @@ def validate_environment(cls) -> bool:
LOG.warning(
"WARNING: Docker not available in the LocalStack container but required to run Lambda "
'functions. Please add the Docker volume mount "/var/run/docker.sock:/var/run/docker.sock" to your '
"LocalStack startup. https://docs.localstack.cloud/references/lambda-provider-v2/#docker-not-available"
"LocalStack startup. https://docs.localstack.cloud/user-guide/aws/lambda/#docker-not-available"
)
return False
return True
4 changes: 2 additions & 2 deletions localstack/services/awslambda/invocation/lambda_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,14 @@ def invoke(
f"Failed to create the runtime executor for the function {function_name}. "
"Please ensure that Docker is available in the LocalStack container by adding the volume mount "
'"/var/run/docker.sock:/var/run/docker.sock" to your LocalStack startup. '
"Check out https://docs.localstack.cloud/references/lambda-provider-v2/#docker-not-available"
"Check out https://docs.localstack.cloud/user-guide/aws/lambda/#docker-not-available"
)
elif state == State.Pending:
HINT_LOG.warning(
"Lambda functions are created and updated asynchronously in the new lambda provider like in AWS. "
f"Before invoking {function_name}, please wait until the function transitioned from the state "
f'Pending to Active using: "aws lambda wait function-active-v2 --function-name {function_name}" '
"Check out https://docs.localstack.cloud/references/lambda-provider-v2/#function-in-pending-state"
"Check out https://docs.localstack.cloud/user-guide/aws/lambda/#function-in-pending-state"
)
raise ResourceConflictException(
f"The operation cannot be performed at this time. The function is currently in the following state: {state}"
Expand Down
2 changes: 1 addition & 1 deletion localstack/services/awslambda/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def validate_configuration() -> None:
"The configuration LAMBDA_EXECUTOR=local is discontinued in the new lambda provider. "
"Please remove the configuration LAMBDA_EXECUTOR and add the Docker volume mount "
'"/var/run/docker.sock:/var/run/docker.sock" to your LocalStack startup. Check out '
"https://docs.localstack.cloud/references/lambda-provider-v2/"
"https://docs.localstack.cloud/user-guide/aws/lambda/#migrating-to-lambda-v2"
)
if LAMBDA_DOCKER_NETWORK == "host":
LOG.warning(
Expand Down