File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
terraform/lib/ecs/service Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments