Skip to content

Commit c90586c

Browse files
authored
Update README.md
1 parent 4b27d6e commit c90586c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ Datadog Lambda Layer for Python (2.7, 3.6 and 3.7) enables custom metric submiss
77
Datadog Lambda Layer can be added to a Lambda function via AWS Lambda console, [AWS CLI](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html#configuration-layers-using) or [Serverless Framework](https://serverless.com/framework/docs/providers/aws/guide/layers/#using-your-layers) using the following ARN.
88

99
```
10-
arn:aws:lambda:<AWS_REGION>:464622532012:layer:Datadog-Python37:<VERSION>
10+
arn:aws:lambda:<AWS_REGION>:464622532012:layer:Datadog-<PYTHON_RUNTIME>:<VERSION>
1111
```
1212

13-
Replace `<AWS_REGION>` with the region where your Lambda function lives, and `<VERSION>` with the desired (or the latest) version that can be found from [CHANGELOG](CHANGELOG.md).
13+
Replace `<AWS_REGION>` with the AWS region where your Lambda function is published to. Replace `<PYTHON_RUNTIME>` with `Datadog-Python27` with `Datadog-Python36` or `Datadog-Python37` that matches your Lambda's Python runtime. Replace `<VERSION>` with the latest layer version that can be found from [CHANGELOG](CHANGELOG.md). For example,
14+
15+
```
16+
arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Python37:1
17+
```
1418

1519
The Datadog API must be defined as an environment variable via [AWS CLI](https://docs.aws.amazon.com/lambda/latest/dg/env_variables.html) or [Serverless Framework](https://serverless-stack.com/chapters/serverless-environment-variables.html):
1620

@@ -44,9 +48,9 @@ functions:
4448
path: hello
4549
method: get
4650
layers:
47-
- arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Python37:1
51+
- arn:aws:lambda:<AWS_REGION>:464622532012:layer:Datadog-<PYTHON_RUNTIME>:<VERSION>
4852
environment:
49-
DATADOG_API_KEY: xxx
53+
DD_API_KEY: <DD_API_KEY>
5054
```
5155
5256

0 commit comments

Comments
 (0)