AWS Cloud Development Kit (CDK) Datadog Integration
Install the package
npm i --save cdk-datadog-integration
Import the stack and pass the required parameters.
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 import aws_cdk.core as cdk from ...lib.monitoring_infrastructure_stack import MonitoringInfrastructureStack app = cdk.App() MonitoringInfrastructureStack(app, "MonitoringInfrastructure")
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 import aws_cdk.core as cdk import aws_cdk.aws_secretsmanager as secrets from cdk_datadog_integration import DatadogIntegrationStack class MonitoringInfrastructureStack(cdk.Stack): def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, synthesizer=None, terminationProtection=None): super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection) datadog = DatadogIntegrationStack(self, "Datadog", # Generate an ID here: https://app.datadoghq.com/account/settings#integrations/amazon-web-services external_id="", # 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 api_key=secrets.Secret.from_secret_name_v2(self, "DatadogApiKey", "<your secret name>") )
DatadogIntegrationConfig to set additional configuration parameters. Check
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
CDK Version Compatibility
This package is expected to work with all recent versions of CDK v1. It has been tested with 1.55.0 so almost certainly works will all newer versions, and probably works with some older versions too, but is untested.
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.
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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for cdk-datadog-integration-1.3.2.tar.gz
Hashes for cdk_datadog_integration-1.3.2-py3-none-any.whl