Marcel,
Even with that set, I still see the following logs:
localstack_main | 2023-05-10T21:41:08.449 DEBUG --- [functhread61] l.s.a.i.version_manager : Starting new environment
localstack_main | 2023-05-10T21:41:08.449 DEBUG --- [functhread61] l.s.a.i.docker_runtime_exe : Creating service endpoint for function arn:aws:lambda:us-west-2:000000000000:function:513E7AF34F934BE5B64118A4855DD540:$LATEST executor 46e40577e5ce7731f285f0b15b7d759d
localstack_main | 2023-05-10T21:41:08.449 DEBUG --- [functhread61] l.s.a.i.docker_runtime_exe : Finished creating service endpoint for function arn:aws:lambda:us-west-2:000000000000:function:513E7AF34F934BE5B64118A4855DD540:$LATEST executor 46e40577e5ce7731f285f0b15b7d759d
localstack_main | 2023-05-10T21:41:08.449 DEBUG --- [functhread61] l.s.a.i.docker_runtime_exe : Assigning container name of localstack-main-lambda-513e7af34f934be5b64118a4855dd540-46e40577e5ce7731f285f0b15b7d759d to executor 46e40577e5ce7731f285f0b15b7d759d
localstack_main | 2023-05-10T21:41:08.458 INFO --- [ asgi_gw_1] localstack.request.aws : AWS sts.AssumeRole => 200
localstack_main | 2023-05-10T21:41:08.462 DEBUG --- [40:$LATEST_0] l.s.a.i.docker_runtime_exe : Executing start docker executor pro-hook for function arn:aws:lambda:us-west-2:000000000000:function:513E7AF34F934BE5B64118A4855DD540:$LATEST
localstack_main | 2023-05-10T21:41:08.462 DEBUG --- [40:$LATEST_0] l.u.c.docker_sdk_client : Creating container with attributes: {'mount_volumes': None, 'ports': None, 'cap_add': None, 'cap_drop': None, 'security_opt': None, 'dns': '127.0.0.1', 'additional_flags': '', 'workdir': None, 'privileged': None, 'labels': None, 'ulimits': None, 'command': None, 'detach': None, 'entrypoint': '/var/rapid/init', 'env_vars': {'AWS_DEFAULT_REGION': 'us-west-2', 'AWS_REGION': 'us-west-2', 'AWS_LAMBDA_FUNCTION_NAME': '513E7AF34F934BE5B64118A4855DD540', 'AWS_LAMBDA_FUNCTION_MEMORY_SIZE': 2048, 'AWS_LAMBDA_FUNCTION_VERSION': '$LATEST', 'AWS_LAMBDA_INITIALIZATION_TYPE': 'on-demand', 'AWS_LAMBDA_LOG_GROUP_NAME': '/aws/lambda/513E7AF34F934BE5B64118A4855DD540', 'AWS_LAMBDA_LOG_STREAM_NAME': '2023/05/10/[$LATEST]46e40577e5ce7731f285f0b15b7d759d', 'AWS_ACCESS_KEY_ID': <redacted>, 'AWS_SECRET_ACCESS_KEY': <redacted>, 'AWS_SESSION_TOKEN': <redacted>, 'LAMBDA_TASK_ROOT': '/var/task', 'LAMBDA_RUNTIME_DIR': '/var/runtime', 'AWS_XRAY_CONTEXT_MISSING': 'LOG_ERROR', 'AWS_XRAY_DAEMON_ADDRESS': '127.0.0.1:2000', '_AWS_XRAY_DAEMON_PORT': '2000', '_AWS_XRAY_DAEMON_ADDRESS': '127.0.0.1', 'TZ': ':UTC', 'AWS_LAMBDA_FUNCTION_TIMEOUT': 900, 'LOCALSTACK_HOSTNAME': '172.18.0.3', 'EDGE_PORT': '443', 'AWS_ENDPOINT_URL': 'http://172.18.0.3:443', 'LOCALSTACK_RUNTIME_ID': '46e40577e5ce7731f285f0b15b7d759d', 'LOCALSTACK_RUNTIME_ENDPOINT': 'http://172.18.0.3:443/_localstack_lambda/46e40577e5ce7731f285f0b15b7d759d', '_HANDLER': 'steamship.invocable.entrypoint.safe_handler', 'AWS_EXECUTION_ENV': 'Aws_Lambda_python3.8', 'AWS_LAMBDA_EXEC_WRAPPER': '/opt/otel-instrument', 'LOCALSTACK_INIT_LOG_LEVEL': 'debug', 'LOCALSTACK_ENABLE_DNS_SERVER': '1', 'AWS_CA_BUNDLE': ''}, 'image_name': 'public.ecr.aws/lambda/python:3.8', 'interactive': None, 'name': 'localstack-main-lambda-513e7af34f934be5b64118a4855dd540-46e40577e5ce7731f285f0b15b7d759d', 'network': 'nludb_default', 'platform': None, 'remove': None, 'self': <localstack.utils.container_utils.docker_sdk_client.SdkDockerClient object at 0xffffb41b58d0>, 'tty': None, 'user': None}
localstack_main | 2023-05-10T21:41:08.508 DEBUG --- [40:$LATEST_0] localstack.packages.api : Installation of awslambda-runtime skipped (already installed).
localstack_main | 2023-05-10T21:41:08.509 DEBUG --- [40:$LATEST_0] l.u.c.docker_sdk_client : Copying file /var/lib/localstack/lib/awslambda-runtime/v0.1.17-pre/arm64/. into localstack-main-lambda-513e7af34f934be5b64118a4855dd540-46e40577e5ce7731f285f0b15b7d759d:/
localstack_main | 2023-05-10T21:41:08.695 DEBUG --- [40:$LATEST_0] l.u.c.docker_sdk_client : Copying file /tmp/lambda/awslambda-us-west-2-tasks/513E7AF34F934BE5B64118A4855DD540-19c04eff-7739-45d5-8447-fd56b7025119/code/. into localstack-main-lambda-513e7af34f934be5b64118a4855dd540-46e40577e5ce7731f285f0b15b7d759d:/var/task
localstack_main | 2023-05-10T21:41:09.050 DEBUG --- [40:$LATEST_0] l.u.c.docker_sdk_client : Copying file /tmp/lambda/awslambda-us-west-2-tasks/aws-otel-python-amd64-ver-1-17-0-c5ef4fb8-e1c1-4545-82fc-f36fd90fea48/code/. into localstack-main-lambda-513e7af34f934be5b64118a4855dd540-46e40577e5ce7731f285f0b15b7d759d:/opt
localstack_main | 2023-05-10T21:41:09.687 DEBUG --- [ asgi_gw_0] l.u.c.docker_sdk_client : Removing container: localstack-main-lambda-513e7af34f934be5b64118a4855dd540-51f69525c07b0fe0bb33e5778e765110
localstack_main | 2023-05-10T21:41:09.832 INFO --- [ asgi_gw_0] localstack.request.http : POST /_localstack_lambda/51f69525c07b0fe0bb33e5778e765110/status/51f69525c07b0fe0bb33e5778e765110/error => 202
localstack_main | 2023-05-10T21:41:09.907 DEBUG --- [40:$LATEST_0] l.u.c.docker_sdk_client : Starting container localstack-main-lambda-513e7af34f934be5b64118a4855dd540-46e40577e5ce7731f285f0b15b7d759d
localstack_main | 2023-05-10T21:41:10.148 DEBUG --- [40:$LATEST_0] l.u.c.container_client : Getting ipv4 address for container localstack-main-lambda-513e7af34f934be5b64118a4855dd540-46e40577e5ce7731f285f0b15b7d759d in network nludb_default.
localstack_main | 2023-05-10T21:41:10.498 WARN --- [ asgi_gw_0] l.s.a.i.executor_endpoint : Execution environment startup failed: {"errorMessage":"Error: exit status 1","errorType":"Extension.Crash"}
And if I try to use the same architecture by using the amd64
version of the layer, I still see:
localstack_main | 2023-05-10T21:46:07.982 DEBUG --- [ asgi_gw_0] l.u.c.docker_sdk_client : Stopping container: localstack-main-lambda-afcd09a80fba42a4850322893ce1d4f5-425cab15c5dcb0121a086523a86dbbb6
localstack_main | 2023-05-10T21:46:08.706 DEBUG --- [functhread61] l.s.a.i.version_manager : Detected no active environments for version arn:aws:lambda:us-west-2:000000000000:function:AFCD09A80FBA42A4850322893CE1D4F5:$LATEST. Starting one...
localstack_main | 2023-05-10T21:46:08.708 DEBUG --- [functhread61] l.s.a.i.version_manager : Starting new environment
localstack_main | 2023-05-10T21:46:08.708 DEBUG --- [functhread61] l.s.a.i.docker_runtime_exe : Creating service endpoint for function arn:aws:lambda:us-west-2:000000000000:function:AFCD09A80FBA42A4850322893CE1D4F5:$LATEST executor 5d61d5662a1538fa5e60c39cac3e92de
localstack_main | 2023-05-10T21:46:08.709 DEBUG --- [functhread61] l.s.a.i.docker_runtime_exe : Finished creating service endpoint for function arn:aws:lambda:us-west-2:000000000000:function:AFCD09A80FBA42A4850322893CE1D4F5:$LATEST executor 5d61d5662a1538fa5e60c39cac3e92de
localstack_main | 2023-05-10T21:46:08.709 DEBUG --- [functhread61] l.s.a.i.docker_runtime_exe : Assigning container name of localstack-main-lambda-afcd09a80fba42a4850322893ce1d4f5-5d61d5662a1538fa5e60c39cac3e92de to executor 5d61d5662a1538fa5e60c39cac3e92de
localstack_main | 2023-05-10T21:46:08.728 INFO --- [ asgi_gw_3] localstack.request.aws : AWS sts.AssumeRole => 200
localstack_main | 2023-05-10T21:46:08.737 DEBUG --- [F5:$LATEST_0] l.s.a.i.docker_runtime_exe : Executing start docker executor pro-hook for function arn:aws:lambda:us-west-2:000000000000:function:AFCD09A80FBA42A4850322893CE1D4F5:$LATEST
localstack_main | 2023-05-10T21:46:08.737 DEBUG --- [F5:$LATEST_0] l.u.c.docker_sdk_client : Creating container with attributes: {'mount_volumes': None, 'ports': None, 'cap_add': None, 'cap_drop': None, 'security_opt': None, 'dns': '127.0.0.1', 'additional_flags': '', 'workdir': None, 'privileged': None, 'labels': None, 'ulimits': None, 'command': None, 'detach': None, 'entrypoint': '/var/rapid/init', 'env_vars': {'AWS_DEFAULT_REGION': 'us-west-2', 'AWS_REGION': 'us-west-2', 'AWS_LAMBDA_FUNCTION_NAME': 'AFCD09A80FBA42A4850322893CE1D4F5', 'AWS_LAMBDA_FUNCTION_MEMORY_SIZE': 2048, 'AWS_LAMBDA_FUNCTION_VERSION': '$LATEST', 'AWS_LAMBDA_INITIALIZATION_TYPE': 'on-demand', 'AWS_LAMBDA_LOG_GROUP_NAME': '/aws/lambda/AFCD09A80FBA42A4850322893CE1D4F5', 'AWS_LAMBDA_LOG_STREAM_NAME': '2023/05/10/[$LATEST]5d61d5662a1538fa5e60c39cac3e92de', 'AWS_ACCESS_KEY_ID': <redacted>, 'AWS_SECRET_ACCESS_KEY': <redacted>, 'AWS_SESSION_TOKEN': <redacted>, 'LAMBDA_TASK_ROOT': '/var/task', 'LAMBDA_RUNTIME_DIR': '/var/runtime', 'AWS_XRAY_CONTEXT_MISSING': 'LOG_ERROR', 'AWS_XRAY_DAEMON_ADDRESS': '127.0.0.1:2000', '_AWS_XRAY_DAEMON_PORT': '2000', '_AWS_XRAY_DAEMON_ADDRESS': '127.0.0.1', 'TZ': ':UTC', 'AWS_LAMBDA_FUNCTION_TIMEOUT': 900, 'LOCALSTACK_HOSTNAME': '172.18.0.3', 'EDGE_PORT': '443', 'AWS_ENDPOINT_URL': 'http://172.18.0.3:443', 'LOCALSTACK_RUNTIME_ID': '5d61d5662a1538fa5e60c39cac3e92de', 'LOCALSTACK_RUNTIME_ENDPOINT': 'http://172.18.0.3:443/_localstack_lambda/5d61d5662a1538fa5e60c39cac3e92de', '_HANDLER': 'steamship.invocable.entrypoint.safe_handler', 'AWS_EXECUTION_ENV': 'Aws_Lambda_python3.8', 'AWS_LAMBDA_EXEC_WRAPPER': '/opt/otel-instrument', 'LOCALSTACK_INIT_LOG_LEVEL': 'debug', 'LOCALSTACK_ENABLE_DNS_SERVER': '1', 'AWS_CA_BUNDLE': ''}, 'image_name': 'public.ecr.aws/lambda/python:3.8', 'interactive': None, 'name': 'localstack-main-lambda-afcd09a80fba42a4850322893ce1d4f5-5d61d5662a1538fa5e60c39cac3e92de', 'network': 'nludb_default', 'platform': None, 'remove': None, 'self': <localstack.utils.container_utils.docker_sdk_client.SdkDockerClient object at 0xffff9b4698d0>, 'tty': None, 'user': None}
localstack_main | 2023-05-10T21:46:08.781 DEBUG --- [F5:$LATEST_0] localstack.packages.api : Installation of awslambda-runtime skipped (already installed).
localstack_main | 2023-05-10T21:46:08.781 DEBUG --- [F5:$LATEST_0] l.u.c.docker_sdk_client : Copying file /var/lib/localstack/lib/awslambda-runtime/v0.1.17-pre/arm64/. into localstack-main-lambda-afcd09a80fba42a4850322893ce1d4f5-5d61d5662a1538fa5e60c39cac3e92de:/
localstack_main | 2023-05-10T21:46:08.996 DEBUG --- [F5:$LATEST_0] l.u.c.docker_sdk_client : Copying file /tmp/lambda/awslambda-us-west-2-tasks/AFCD09A80FBA42A4850322893CE1D4F5-35ed8e28-9973-4a5d-8715-614c467dc0fe/code/. into localstack-main-lambda-afcd09a80fba42a4850322893ce1d4f5-5d61d5662a1538fa5e60c39cac3e92de:/var/task
localstack_main | 2023-05-10T21:46:09.586 DEBUG --- [F5:$LATEST_0] l.u.c.docker_sdk_client : Copying file /tmp/lambda/awslambda-us-west-2-tasks/aws-otel-python-amd64-ver-1-17-0-4bc4341e-c730-4c4f-ac3c-d3afd8a89d00/code/. into localstack-main-lambda-afcd09a80fba42a4850322893ce1d4f5-5d61d5662a1538fa5e60c39cac3e92de:/opt
localstack_main | 2023-05-10T21:46:09.837 DEBUG --- [ asgi_gw_2] l.u.c.docker_sdk_client : Removing container: localstack-main-lambda-afcd09a80fba42a4850322893ce1d4f5-e7dc94abcf276d04d2c653c3f5298936
localstack_main | 2023-05-10T21:46:10.589 INFO --- [ asgi_gw_2] localstack.request.http : POST /_localstack_lambda/e7dc94abcf276d04d2c653c3f5298936/status/e7dc94abcf276d04d2c653c3f5298936/error => 202
localstack_main | 2023-05-10T21:46:11.216 DEBUG --- [F5:$LATEST_0] l.u.c.docker_sdk_client : Starting container localstack-main-lambda-afcd09a80fba42a4850322893ce1d4f5-5d61d5662a1538fa5e60c39cac3e92de
localstack_main | 2023-05-10T21:46:11.463 DEBUG --- [F5:$LATEST_0] l.u.c.container_client : Getting ipv4 address for container localstack-main-lambda-afcd09a80fba42a4850322893ce1d4f5-5d61d5662a1538fa5e60c39cac3e92de in network nludb_default.
localstack_main | 2023-05-10T21:46:11.820 WARN --- [ asgi_gw_1] l.s.a.i.executor_endpoint : Execution environment startup failed: {"errorMessage":"Error: exit status 1","errorType":"Extension.Crash"}
localstack_main | 2023-05-10T21:46:11.820 DEBUG --- [ asgi_gw_1] l.u.c.docker_sdk_client : Stopping container: localstack-main-lambda-afcd09a80fba42a4850322893ce1d4f5-5d61d5662a1538fa5e60c39cac3e92de
What do I need to do to run this layer?