Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ECS Fargate Integration #120

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions common/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* Copyright 2021 Datadog, Inc.
*/

import { Construct } from 'constructs';
import { FargateTaskDefinition } from 'aws-cdk-lib/aws-ecs';

export interface DatadogProps {
readonly pythonLayerVersion?: number;
readonly nodeLayerVersion?: number;
Expand Down Expand Up @@ -62,3 +65,22 @@ export interface ILambdaFunction {
node: Node;
addEnvironment(key: string, value: string, options?: Record<string, unknown>): void;
}

export interface EcsOptions {
/* Construct Scope */
readonly scope: Construct;
/* Fargate Task Defintiion */
readonly taskDefinition: FargateTaskDefinition;
/* Secret Manager ARN that contains the Datadog API Key */
readonly ddApiSecretArn: string;
/* (Optional) KMS Key used to encrypt the Datadog API Secret */
readonly kmsKeyArn?: string;
/* Service name */
readonly service: string;
/* Application version */
readonly version: string;
/* Environment name */
readonly envName: string;
/* (Optional) additional tags for querying in Datadog */
readonly tags?: { [key: string]: string };
}
35 changes: 35 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading