This repository was archived by the owner on Jul 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ variable "requires_compatibilities" {
134134
135135variable "network_mode" {
136136 description = " The network mode, fargate required \" awsvpc\" "
137- default = " "
137+ default = " bridge "
138138}
139139/* *
140140 * Resources.
@@ -150,7 +150,7 @@ resource "aws_ecs_service" "main" {
150150 deployment_maximum_percent = " ${ var . deployment_maximum_percent } "
151151 launch_type = " ${ var . launch_type } "
152152
153- network_configuration = {
153+ network_configuration {
154154 subnets = [" ${ var . subnet_ids } " ]
155155 security_groups = [" ${ var . security_groups } " ]
156156 }
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ resource "aws_ecs_task_definition" "main" {
9393 family = " ${ var . name } "
9494 task_role_arn = " ${ var . role } "
9595
96- requires_compatibilities = " $var.requires_compatibilities}"
96+ requires_compatibilities = " ${ var . requires_compatibilities } "
9797 network_mode = " ${ var . network_mode } "
9898
9999 lifecycle {
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ variable "requires_compatibilities" {
143143
144144variable "network_mode" {
145145 description = " The network mode, fargate required \" awsvpc\" "
146- default = " "
146+ default = " bridge "
147147}
148148
149149
@@ -161,7 +161,7 @@ resource "aws_ecs_service" "main" {
161161 deployment_maximum_percent = " ${ var . deployment_maximum_percent } "
162162 launch_type = " ${ var . launch_type } "
163163
164- network_configuration = {
164+ network_configuration {
165165 subnets = [" ${ var . subnet_ids } " ]
166166 security_groups = [" ${ var . security_groups } " ]
167167 }
You can’t perform that action at this time.
0 commit comments