Skip to content

Commit d80ed27

Browse files
authored
Merge pull request DataDog#11383 from jeffWelling/update-chalice-docs-to-best-practices
2 parents 136c1cb + 53b32f4 commit d80ed27

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

content/en/serverless/installation/python.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,13 @@ arn:aws-us-gov:lambda:us-gov-east-1:002406178527:layer:Datadog-Extension-ARM:{{<
318318
"layers": ["arn:aws-us-gov:lambda:<AWS_REGION>:002406178527:layer:Datadog-Extension:<EXTENSION_VERSION>"],
319319
}
320320
}
321-
}
322-
```
323-
{{< /site-region >}}
324-
2. Replace the following placeholders with appropriate values:
321+
```
322+
{{< /site-region >}}
323+
324+
**Note**: For security, you may wish to store your Datadog API key in AWS Secrets Manager. In this case, set the environment variable `DD_API_KEY_SECRET_ARN` with the ARN of the Secrets Manager secret containing your Datadog API key. In other words, you can replace the line `"DD_API_KEY": "<DATADOG_API_KEY>"` in the configuration above with `"DD_API_KEY_SECRET_ARN": "<SECRET_ARN_DATADOG_API_KEY>"`. Accessing this key during a cold start adds extra latency.
325+
326+
2. Replace the following placeholders with appropriate values:
325327

326-
- Replace `<DATADOG_API_KEY>` with your Datadog API key on the [API Management page][2].
327328
- Replace `<AWS_REGION>` with the AWS region to which your Lambda functions are deployed.
328329
- Replace `<EXTENSION_VERSION>` with the desired version of the Datadog Lambda Extension. The latest version is `{{< latest-lambda-layer-version layer="extension" >}}`.
329330
- If the lambda is using the arm64 architecture, add -ARM to the layer name.

content/fr/serverless/installation/python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,4 +519,4 @@ Pour en savoir plus sur l'envoi de métriques custom, consultez [cette page][7].
519519
[5]: /fr/getting_started/tagging/unified_service_tagging/#aws-lambda-functions
520520
[6]: /fr/serverless/libraries_integrations/forwarder
521521
[7]: /fr/serverless/custom_metrics?tab=python
522-
[8]: /fr/tracing/custom_instrumentation/python/
522+
[8]: /fr/tracing/custom_instrumentation/python/

0 commit comments

Comments
 (0)