Skip to content

Commit 3a092b6

Browse files
committed
Support passing ports to LB
1 parent e41599f commit 3a092b6

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ This software is released under the MIT License (see `LICENSE`).
9696
| lb\_healthcheck\_timeout | Timeout in seconds for LB to use when connecting health checks (default 5) | string | `5` | no |
9797
| lb\_healthcheck\_unhealthy\_threshold | Number of consecutive failed health checks before marking service as unhealthy (default 2) | string | `5` | no |
9898
| lb\_internal | Configure LB as internal-only | string | `true` | no |
99+
| lb\_ports | Ports load balancer should listen on | string | `80` | no |
99100
| lb\_stickiness\_enabled | Enable LB session stickiness (default false) | string | `false` | no |
100101
| lb\_subnet\_ids | VPC subnet IDs in which to create the LB (unnecessary if neither lb_enable_https or lb_enable_http are true) | list | `<list>` | no |
101102
| lb\_type | Type of LB to create: application, network | string | `application` | no |

examples/other-modules/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ These can also serve as more examples
88
| Name | GitHub Repo | Terraform Registry |
99
|-----|-----|-----|
1010
| ecs-service-datadog | [Repo](https://github.com/devops-workflow/terraform-aws-ecs-service-datadog) | [Registry](https://registry.terraform.io/modules/devops-workflow/ecs-service-datadog/aws) |
11+
| ecs-service-nexus | [Repo](https://github.com/devops-workflow/terraform-aws-ecs-service-nexus) | [Registry](https://registry.terraform.io/modules/devops-workflow/ecs-service-nexus/aws) |

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ module "lb" {
5252
certificate_name = "${var.acm_cert_domain}"
5353
lb_protocols = "${compact(split(",", local.lb_protocols))}"
5454
internal = "${var.lb_internal}"
55+
ports = "${var.lb_ports}"
5556
subnets = "${var.lb_subnet_ids}"
5657

5758
/*

resource-plan-graph.png

-185 KB
Loading

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ variable "lb_cookie_duration" {
125125
default = "86400"
126126
}
127127

128+
variable "lb_ports" {
129+
description = "Ports load balancer should listen on"
130+
default = "80"
131+
}
132+
128133
variable "lb_stickiness_enabled" {
129134
description = "Enable LB session stickiness (default false)"
130135
default = "false"

0 commit comments

Comments
 (0)