This repository was archived by the owner on Jul 3, 2023. It is now read-only.
File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ variable "requires_compatibilities" {
134
134
135
135
variable "network_mode" {
136
136
description = " The network mode, fargate required \" awsvpc\" "
137
- default = " "
137
+ default = " bridge "
138
138
}
139
139
/* *
140
140
* Resources.
@@ -150,7 +150,7 @@ resource "aws_ecs_service" "main" {
150
150
deployment_maximum_percent = " ${ var . deployment_maximum_percent } "
151
151
launch_type = " ${ var . launch_type } "
152
152
153
- network_configuration = {
153
+ network_configuration {
154
154
subnets = [" ${ var . subnet_ids } " ]
155
155
security_groups = [" ${ var . security_groups } " ]
156
156
}
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ resource "aws_ecs_task_definition" "main" {
93
93
family = " ${ var . name } "
94
94
task_role_arn = " ${ var . role } "
95
95
96
- requires_compatibilities = " $var.requires_compatibilities}"
96
+ requires_compatibilities = " ${ var . requires_compatibilities } "
97
97
network_mode = " ${ var . network_mode } "
98
98
99
99
lifecycle {
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ variable "requires_compatibilities" {
143
143
144
144
variable "network_mode" {
145
145
description = " The network mode, fargate required \" awsvpc\" "
146
- default = " "
146
+ default = " bridge "
147
147
}
148
148
149
149
@@ -161,7 +161,7 @@ resource "aws_ecs_service" "main" {
161
161
deployment_maximum_percent = " ${ var . deployment_maximum_percent } "
162
162
launch_type = " ${ var . launch_type } "
163
163
164
- network_configuration = {
164
+ network_configuration {
165
165
subnets = [" ${ var . subnet_ids } " ]
166
166
security_groups = [" ${ var . security_groups } " ]
167
167
}
You can’t perform that action at this time.
0 commit comments