Datadog CDK Python Example
Use this example Python stack to try out the datadog-cdk-constructs v2 library for Step Functions.
Getting Started
- Get a Datadog API key to send monitoring data (Datadog API keys documentation).
- Run
export DD_API_KEY=<DATADOG_API_KEY>to set the Datadog API key in your shell session. - Set up Datadog forwarder (Datadog Forwarder documentation).
- Run
export DD_FORWARDER_ARN=<DD_FORWARDER_ARN>to set the Datadog forwarder ARN in your shell session. - Run
virtualenv envto create a virtual environment. - Run
source env/bin/activateto activate the virtual environment. - Run
pip install -r requirements.txtto install dependencies. - Run
cdk synthto synthesize the CloudFormation template. - Run
cdk diffto see the resource and permission changes that are made. - Run
cdk deployto deploy the stack to AWS. - Invoke your Step Function and look for them in Datadog Serverless Monitoring.
