aws-cdk-datadog-ecs-integration
v0.2.2
Published
Datadog ECS integrations for Fargate and EC2 Task Definitions
Downloads
18
Readme
Fargate service with Datadog integration
Provides an easy way to integrate Datadog agent to your ECS EC2 or Fargate task definition.
Usage
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'
});