From bd7ad0612dcd6425349221dc806bf7bb24eb7fae Mon Sep 17 00:00:00 2001 From: Andrew Pepler Date: Mon, 11 Dec 2023 10:45:45 +0000 Subject: [PATCH] add logging --- terraform/environments/cdpt-chaps/ecs.tf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/terraform/environments/cdpt-chaps/ecs.tf b/terraform/environments/cdpt-chaps/ecs.tf index dee1cf837a7..47ccf99c82e 100644 --- a/terraform/environments/cdpt-chaps/ecs.tf +++ b/terraform/environments/cdpt-chaps/ecs.tf @@ -38,6 +38,14 @@ resource "aws_ecs_task_definition" "chaps_task_definition" { hostPort = 80 } ] + logConfiguration = { + logDriver = "awslogs", + options = { + awslogs-group = "${local.application_name}-ecs", + awslogs-region = "eu-west-2", + awslogs-stream-prefix = local.application_name + } + } environment = [ ] }