This construct makes it easy to integrate your AWS account with Datadog. It creates nested stacks based on the official Datadog Cloudformation templates using Amazon Cloud Development Kit (CDK).
-
Install the package
npm i --save cdk-datadog-integration
Or via pypi, NuGet, or GitHub Packages.
-
Import the stack and pass the required parameters.
import * as cdk from "@aws-cdk/core"; import * as secrets from "@aws-cdk/aws-secretsmanager"; import { DatadogIntegrationStack } from "cdk-datadog-integration"; const app = new cdk.App(); new DatadogIntegrationStack(app, "DatadogIntegration", { // Generate an ID here: https://app.datadoghq.com/account/settings#integrations/amazon-web-services externalId: "", // Create or lookup a `Secret` that contains your Datadog API Key // Get your API key here: https://app.datadoghq.com/account/settings#api apiKey: secrets.Secret.fromSecretArn( app, "DatadogApiKey", "arn:aws:secretsmanager:<your region>:<your account>:secret:<your secret name>" ), });
Use DatadogIntegrationConfig
to set additional configuration parameters. Check
out
docs
for more details on what's available.
Additionally, a CDK Construct
is exposed, should you want to add additional
customizations vs. using the out-of-the-box Stack
.
This module uses the
CfnStack
CDK Construct
to import the three CloudFormation stacks referenced by the
main Datadog CloudFormation template.
By referencing the Datadog-provided templates, you can be confident that the
integration works exactly as Datadog intends.
This package is created and maintained by Ben Limmer, a freelance architect and consultant. I love helping businesses of all sizes solve their hardest technology problems. Let's connect if I can be of help!
PRs are welcome!
To release, use npm version
and push the tag.