Skip to content

Commit 5fb903f

Browse files
committed
fix: network_mode default to awsvpc
1 parent f647f2e commit 5fb903f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

variables.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ variable "name" {
145145
}
146146

147147
variable "network_mode" {
148-
default = "bridge"
148+
default = "awsvpc"
149149
description = "The Docker networking mode to use for the containers in the task"
150150
}
151151

@@ -164,7 +164,7 @@ variable "placement_constraints" {
164164
}
165165

166166
variable "portMappings" {
167-
default = []
167+
default = [{ containerPort = 80 }]
168168
description = "The list of port mappings for the container"
169169
type = list(any)
170170
}
@@ -196,7 +196,7 @@ variable "repositoryCredentials" {
196196
}
197197

198198
variable "requires_compatibilities" {
199-
default = []
199+
default = ["FARGATE"]
200200
description = "The launch type required by the task"
201201
type = list(string)
202202
}

0 commit comments

Comments
 (0)