Skip to content

Commit 27de980

Browse files
[serverless] Add section for container image setup for Go (#16214)
* add section for container image setup for Go * fix
1 parent 366e856 commit 27de980

File tree

1 file changed

+20
-0
lines changed
  • content/en/serverless/installation

1 file changed

+20
-0
lines changed

content/en/serverless/installation/go.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,26 @@ For more information and additional settings, see the [plugin documentation][1].
5454
[3]: https://docs.datadoghq.com/getting_started/site/
5555
[4]: https://app.datadoghq.com/organization-settings/api-keys
5656
{{% /tab %}}
57+
{{% tab "Container Image" %}}
58+
59+
1. Install the Datadog Lambda Extension
60+
61+
```dockerfile
62+
COPY --from=public.ecr.aws/datadog/lambda-extension:<TAG> /opt/. /opt/
63+
```
64+
65+
Replace `<TAG>` with either a specific version number (for example, `{{< latest-lambda-layer-version layer="extension" >}}`) or with `latest`. You can see a complete list of possible tags in the [Amazon ECR repository][1].
66+
67+
2. Set the required environment variables
68+
69+
- Set `DD_SITE` to {{< region-param key="dd_site" code="true" >}} (ensure the correct SITE is selected on the right).
70+
- Set `DD_API_KEY_SECRET_ARN` to the ARN of the AWS secret where your [Datadog API key][2] is securely stored. The key needs to be stored as a plaintext string (not a JSON blob). The `secretsmanager:GetSecretValue` permission is required. For quick testing, you can use `DD_API_KEY` instead and set the Datadog API key in plaintext.
71+
- Optionally set `DD_UNIVERSAL_INSTRUMENTATION: true` to take advantage of [advanced configurations][3] such as capturing the Lambda request and response payloads and inferring APM spans from incoming Lambda events.
72+
73+
[1]: https://gallery.ecr.aws/datadog/lambda-extension
74+
[2]: https://app.datadoghq.com/organization-settings/api-keys
75+
[3]: /serverless/configuration/
76+
{{% /tab %}}
5777
{{% tab "Custom" %}}
5878
### Install the Datadog Lambda Extension
5979

0 commit comments

Comments
 (0)