Skip to content

Amazon Cloud Development Kit (CDK) logic to integrate your AWS account with Datadog

Notifications You must be signed in to change notification settings

IanMExtend/cdk-datadog-integration

 
 

Repository files navigation

AWS Cloud Development Kit (CDK) Datadog Integration

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).

Basic Usage

  1. Install the package

    npm i --save cdk-datadog-integration

    Or via pypi, NuGet, or GitHub Packages.

  2. 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>"
      ),
    });

Configuration

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.

How it Works

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.

Author

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!

Contributing

PRs are welcome!

Releasing

To release, use npm version and push the tag.

About

Amazon Cloud Development Kit (CDK) logic to integrate your AWS account with Datadog

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.3%
  • JavaScript 0.7%