From d2e7b26cffb27e1db94b079ed664f3fe358c23d9 Mon Sep 17 00:00:00 2001 From: Nick Kammerdiener Date: Sun, 19 Feb 2023 16:35:38 -0500 Subject: [PATCH] adding log configuration --- infra/staging/index.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/infra/staging/index.ts b/infra/staging/index.ts index 3d9ba8308..ccb2fe287 100644 --- a/infra/staging/index.ts +++ b/infra/staging/index.ts @@ -490,6 +490,24 @@ const taskMigrate = new awsx.ecs.FargateTaskDefinition(`scorer-run-migrate`, { environment: environment, dependsOn: [], links: [], + firelensConfiguration: { + type: "fluentbit", + options: { + "enable-ecs-log-metadata": "true" + } + }, + logConfiguration: { + "logDriver": "awsfirelens", + "options": { + "Name": "datadog", + "apiKey": "c10d6455912baafda682935d15320c4d", + "dd_service": "passport-scorer", + "dd_source": "httpd", + "dd_tags": "app:scorer", + "TLS": "on", + "provider": "ecs" + } + } }, }, });