aws-cdk-datadog-ecs-integration
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i aws-cdk-datadog-ecs-integration

Weekly Downloads

3

Version

0.2.2

License

MIT

Unpacked Size

68.4 kB

Total Files

17

Last publish

Collaborators

  • markusl