File tree 3 files changed +20
-16
lines changed
3 files changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -107,14 +107,16 @@ module "ecs" {
107
107
108
108
service_connect_configuration = {
109
109
namespace = aws_service_discovery_http_namespace.this.arn
110
- service = {
111
- client_alias = {
112
- port = local.container_port
113
- dns_name = local.container_name
110
+ service = [
111
+ {
112
+ client_alias = {
113
+ port = local.container_port
114
+ dns_name = local.container_name
115
+ }
116
+ port_name = local.container_name
117
+ discovery_name = local.container_name
114
118
}
115
- port_name = local.container_name
116
- discovery_name = local.container_name
117
- }
119
+ ]
118
120
}
119
121
120
122
load_balancer = {
Original file line number Diff line number Diff line change @@ -133,14 +133,16 @@ module "ecs_service" {
133
133
134
134
service_connect_configuration = {
135
135
namespace = aws_service_discovery_http_namespace.this.arn
136
- service = {
137
- client_alias = {
138
- port = local.container_port
139
- dns_name = local.container_name
136
+ service = [
137
+ {
138
+ client_alias = {
139
+ port = local.container_port
140
+ dns_name = local.container_name
141
+ }
142
+ port_name = local.container_name
143
+ discovery_name = local.container_name
140
144
}
141
- port_name = local.container_name
142
- discovery_name = local.container_name
143
- }
145
+ ]
144
146
}
145
147
146
148
load_balancer = {
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ resource "aws_ecs_service" "this" {
155
155
namespace = lookup (service_connect_configuration. value , " namespace" , null )
156
156
157
157
dynamic "service" {
158
- for_each = try ([ service_connect_configuration . value . service ] , [])
158
+ for_each = try (service_connect_configuration. value . service , [])
159
159
160
160
content {
161
161
@@ -343,7 +343,7 @@ resource "aws_ecs_service" "ignore_task_definition" {
343
343
namespace = lookup (service_connect_configuration. value , " namespace" , null )
344
344
345
345
dynamic "service" {
346
- for_each = try ([ service_connect_configuration . value . service ] , [])
346
+ for_each = try (service_connect_configuration. value . service , [])
347
347
348
348
content {
349
349
You can’t perform that action at this time.
0 commit comments