Skip to content

Commit

Permalink
add support for awsvpc
Browse files Browse the repository at this point in the history
  • Loading branch information
Keir Badger committed Jan 6, 2021
1 parent 30376f6 commit aeb3528
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
4 changes: 3 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module "ecs_update_monitor" {

module "service" {
source = "mergermarket/load-balanced-ecs-service-no-target-group/acuris"
version = "2.0.2"
version = "2.1.0"

name = "${local.service_name}${var.name_suffix}"
cluster = var.ecs_cluster
Expand All @@ -25,6 +25,8 @@ module "service" {
target_group_arn = var.target_group_arn
deployment_minimum_healthy_percent = var.deployment_minimum_healthy_percent
deployment_maximum_percent = var.deployment_maximum_percent
network_configuration_subnets = var.network_configuration_subnets
network_configuration_security_groups = var.network_configuration_security_groups
}

module "taskdef" {
Expand Down
15 changes: 11 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,15 @@ variable "image_id" {
default = ""
}

variable "network_mode" {
description = "The Docker networking mode to use for the containers in the task"
type = string
default = "bridge"
variable "network_configuration_subnets" {
description = "needed for network_mode awsvpc "
type = list
default = []
}


variable "network_configuration_security_groups" {
description = "needed for network_mode awsvpc "
type = list
default = []
}

0 comments on commit aeb3528

Please sign in to comment.