diff --git a/terraform/environments/dacp/ecs.tf b/terraform/environments/dacp/ecs.tf index f3ceae58d91..90021f3d21a 100644 --- a/terraform/environments/dacp/ecs.tf +++ b/terraform/environments/dacp/ecs.tf @@ -16,14 +16,14 @@ resource "aws_ecs_task_definition" "dacp_task_definition" { network_mode = "awsvpc" execution_role_arn = aws_iam_role.app_execution.arn task_role_arn = aws_iam_role.app_task.arn - cpu = 1024 - memory = 2048 + cpu = 2048 + memory = 4096 container_definitions = jsonencode([ { name = "dacp-container" image = "mcr.microsoft.com/dotnet/framework/aspnet:4.8" - cpu = 1024 - memory = 2048 + cpu = 2048 + memory = 4096 essential = true portMappings = [ { @@ -150,10 +150,7 @@ resource "aws_iam_role_policy" "app_execution" { { "Action": [ "ecr:*", - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents", - "logs:DescribeLogStreams", + "logs:*", "secretsmanager:GetSecretValue" ], "Resource": "*", @@ -202,8 +199,7 @@ resource "aws_iam_role_policy" "app_task" { { "Effect": "Allow", "Action": [ - "logs:CreateLogStream", - "logs:PutLogEvents", + "logs:*", "ecr:*", "iam:*", "ec2:*" diff --git a/terraform/environments/dacp/load_balancer.tf b/terraform/environments/dacp/load_balancer.tf index 8350b19619a..e853f3d7f10 100644 --- a/terraform/environments/dacp/load_balancer.tf +++ b/terraform/environments/dacp/load_balancer.tf @@ -129,12 +129,12 @@ resource "aws_lb_target_group" "dacp_target_group" { health_check { healthy_threshold = "3" - interval = "15" + interval = "30" protocol = "HTTP" port = "80" - unhealthy_threshold = "3" + unhealthy_threshold = "5" matcher = "200-302" - timeout = "5" + timeout = "10" } }