Skip to content

Commit 1cecd9e

Browse files
authored
Make Secret token / API Key optional (#181)
1 parent 75e0e9b commit 1cecd9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apm-lambda-extension/extension/process_env.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func ProcessEnv() *extensionConfig {
113113
Log.Fatal("please set ELASTIC_APM_LAMBDA_APM_SERVER, exiting")
114114
}
115115
if config.apmServerSecretToken == "" && config.apmServerApiKey == "" {
116-
Log.Fatal("please set ELASTIC_APM_SECRET_TOKEN or ELASTIC_APM_API_KEY, exiting")
116+
Log.Warn("ELASTIC_APM_SECRET_TOKEN or ELASTIC_APM_API_KEY not specified")
117117
}
118118

119119
return config

docs/monitoring-aws-lambda.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The following configuration options are particularly relevant for Elastic's APM
4646
This required config option controls where the Lambda extension will ship data. This should be the URL of the final APM Server destination for your telemetry.
4747

4848
=== `ELASTIC_APM_SECRET_TOKEN` or `ELASTIC_APM_API_KEY`
49-
One of these needs to be set as the authentication method that the extension uses when sending data to the URL configured via `ELASTIC_APM_LAMBDA_APM_SERVER`.
49+
One of these needs to be set as the authentication method that the extension uses when sending data to the URL configured via `ELASTIC_APM_LAMBDA_APM_SERVER`. Sending data to the APM Server if none of these options is set is possible, but your APM agent must be allowed to send data to your APM server in https://www.elastic.co/guide/en/apm/guide/current/configuration-anonymous.html[anonymous mode].
5050

5151
=== `ELASTIC_APM_SERVICE_NAME`
5252
The configured name of your application or service. The APM Agent will use this value when reporting data to the APM Server. If unset, the APM Agent will automatically set the value based on the Lambda function name. Use this config option if you want to group multiple Lambda functions under a single service entity in APM.

0 commit comments

Comments
 (0)