Kibana version:
7.16.3
Elasticsearch version:
7.16.3
APM Server version:
7.16.3
APM Agent language and version:
elastic-apm-java-aws-lambda-layer-1.28.4.zip
Original install method:
Steps to reproduce:
- Create a AWS Lambda with sample handler and version: java8.al2
- Instrument this lambda with install method above and put these env vars:
AWS_LAMBDA_EXEC_WRAPPER: /opt/elastic-apm-handler
ELASTIC_APM_APPLICATION_PACKAGES: ttt,fff
ELASTIC_APM_ENVIRONMENT: tst
ELASTIC_APM_LAMBDA_APM_SERVER: https://XXXXXXXX.apm.us-east-1.aws.cloud.es.io:443
ELASTIC_APM_LOG_LEVEL: TRACE
ELASTIC_APM_SECRET_TOKEN: XXXXXXXXXXXX
-
Install elastic-apm-java-aws-lambda-layer-1.28.4.zip as a lambda layer with runtime java8.al2 and x86_64
-
Configure your lambda to use this layer
-
Execute this lambda from console AWS "Test Button"
Log/Output Cloudwatch:
START RequestId: 8f939239-aa2a-4605-bdc6-0ffc7221811f Version: $LATEST
Picked up JAVA_TOOL_OPTIONS: -javaagent:/opt/elastic-apm-agent-1.28.4.jar
2022-01-28T13:56:07.450-03:00 An error has occurred while processing the shared archive file.
2022-01-28T13:56:07.450-03:00 Tool agent requires sharing to be disabled.
2022-01-28T13:56:07.450-03:00 Error occurred during initialization of VM
2022-01-28T13:56:07.450-03:00 Unable to use shared archive.
END RequestId: 8f939239-aa2a-4605-bdc6-0ffc7221811f