Provides an easy way to integrate Datadog agent to your ECS EC2 or Fargate task definition.
npm install --save-dev aws-cdk-datadog-ecs-integration
import { DatadogFargateIntegration } from 'aws-cdk-datadog-ecs-integration';
const stack = new cdk.Stack();
const taskDefinition = new ecs.TaskDefinition(stack, 'TaskDefinition', {
compatibility: ecs.Compatibility.FARGATE,
memoryMiB: '2048',
cpu: '2048',
});
// Include Datadog with the specific API key
new DatadogFargateIntegration(stack, 'Service', taskDefinition, {
datadogApiKey: '/path/to/DatadogApiKey'
});