Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit 4c0c3f9

Browse files
committed
fargate
1 parent 9c00071 commit 4c0c3f9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

service/main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ variable "requires_compatibilities" {
134134

135135
variable "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
}

task/main.tf

+1-1
Original file line numberDiff line numberDiff 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 {

web-service/main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ variable "requires_compatibilities" {
143143

144144
variable "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
}

0 commit comments

Comments
 (0)