cdk-datadog-integration
Project description
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
-
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-lib"; import { MonitoringInfrastructureStack } from "../lib/monitoring-infrastructure-stack"; const app = new cdk.App(); new MonitoringInfrastructureStack(app, "MonitoringInfrastructure");
import * as cdk from "aws-cdk-lib"; import * as secrets from "aws-cdk-lib/aws-secretsmanager"; import { DatadogIntegration } from "cdk-datadog-integration"; export class MonitoringInfrastructureStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { super(scope, id, props); const datadog = new DatadogIntegration(this, "Datadog", { // 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 // See https://docs.aws.amazon.com/cdk/api/latest/docs/aws-secretsmanager-readme.html for details on Secrets in CDK // Get your API key here: https://app.datadoghq.com/account/settings#api apiKey: secrets.Secret.fromSecretNameV2( this, "DatadogApiKey", "<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
.
CDK Version Compatibility
This package is expected to work with all recent versions of CDK v2. It has been tested with 2.1.0 so almost certainly works will all newer versions, and probably works with some older versions too, but is untested.
If you're still on CDK v1, you can use cdk-datadog-integration@1
, but this
version is unmaintained. Please upgrade to CDKv2.
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, merge your PR to main
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cdk-datadog-integration-2.1.1.tar.gz
.
File metadata
- Download URL: cdk-datadog-integration-2.1.1.tar.gz
- Upload date:
- Size: 53.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 485ebc74c75b318f5070e503cf981909ac42033967233690dcbc53880d1e7890 |
|
MD5 | 3c205e9b7325b2618dce1f4861d6df96 |
|
BLAKE2b-256 | be5e18e516b14c4ec9ce0e0c313e68d97c900bc3f42386ac4c297ccd3b39a6ad |
File details
Details for the file cdk_datadog_integration-2.1.1-py3-none-any.whl
.
File metadata
- Download URL: cdk_datadog_integration-2.1.1-py3-none-any.whl
- Upload date:
- Size: 51.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 928432d16f0df5141bdfee4744cc68dbee00b3bd8c3f9fdfe75e07539a6ca310 |
|
MD5 | 3497d8db6cecf2e5bef7bdba60f524dc |
|
BLAKE2b-256 | 43460561813fcfd3698a98eb25f706f40e80824d04ee0956d6bf8d265a144fd9 |