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.
# 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>") )
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 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.
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.
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-1.3.2.tar.gz
.
File metadata
- Download URL: cdk-datadog-integration-1.3.2.tar.gz
- Upload date:
- Size: 78.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ab4443f21c447d6c3b527ff1e492ccaecd486de3ca31274ee4e09173117b871 |
|
MD5 | 602699583a0fc7eb38c8a4dafc6862e1 |
|
BLAKE2b-256 | 174ea6997113b2070a9cada8f22292771044f34d988d42aef44508c148e9cf2f |
File details
Details for the file cdk_datadog_integration-1.3.2-py3-none-any.whl
.
File metadata
- Download URL: cdk_datadog_integration-1.3.2-py3-none-any.whl
- Upload date:
- Size: 76.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b56e8b4f4f96bbe876193451fbd94a42d590b002895f1782416a1b7d9ddc10d |
|
MD5 | 7597c9ab222dc68bc854214e56d6185a |
|
BLAKE2b-256 | 075084318daee53e482682054523f94681733f6de07a166b601e3e83df13fc49 |