Skip to content

Commit eff0668

Browse files
authored
fix: Improved CW Logging for ECS default deployment (#921)
1 parent 2a15436 commit eff0668

File tree

1 file changed

+4
-4
lines changed
  • terraform/lib/ecs/service

1 file changed

+4
-4
lines changed

terraform/lib/ecs/service/ecs.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ locals {
4646
}])
4747

4848
base_container = {
49-
name = "application"
49+
name = "${var.service_name}-service"
5050
image = var.container_image
5151
portMappings = [
5252
{
5353
containerPort = 8080
5454
hostPort = 8080
55-
name = "application"
55+
name = "${var.service_name}-service"
5656
protocol = "tcp"
5757
}
5858
]
@@ -157,7 +157,7 @@ resource "aws_ecs_service" "this" {
157157
port = "80"
158158
}
159159
discovery_name = var.service_name
160-
port_name = "application"
160+
port_name = "${var.service_name}-service"
161161
}
162162
}
163163

@@ -166,7 +166,7 @@ resource "aws_ecs_service" "this" {
166166

167167
content {
168168
target_group_arn = var.alb_target_group_arn
169-
container_name = "application"
169+
container_name = "${var.service_name}-service"
170170
container_port = 8080
171171
}
172172
}

0 commit comments

Comments
 (0)