0.2.2 • Published 4 years ago

aws-cdk-datadog-ecs-integration v0.2.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Fargate service with Datadog integration

Version npm

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'
  });