Skip to content

Commit e3586dd

Browse files
authored
docs: Correct key names for protocol and port in target groups (#320)
Co-authored-by: Anders K. Pettersen <[email protected]>
1 parent 72bfb35 commit e3586dd

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ module "alb" {
7272
target_groups = {
7373
ex-instance = {
7474
name_prefix = "h1"
75-
backend_protocol = "HTTP"
76-
backend_port = 80
75+
protocol = "HTTP"
76+
port = 80
7777
target_type = "instance"
7878
}
7979
}
@@ -219,10 +219,10 @@ module "alb" {
219219
220220
target_groups = {
221221
instance = {
222-
name_prefix = "default"
223-
backend_protocol = "HTTPS"
224-
backend_port = 443
225-
target_type = "instance"
222+
name_prefix = "default"
223+
protocol = "HTTPS"
224+
port = 443
225+
target_type = "instance"
226226
}
227227
}
228228
}
@@ -306,10 +306,10 @@ module "nlb" {
306306
307307
target_groups = {
308308
ex-target = {
309-
name_prefix = "pref-"
310-
backend_protocol = "TCP"
311-
backend_port = 80
312-
target_type = "ip"
309+
name_prefix = "pref-"
310+
protocol = "TCP"
311+
port = 80
312+
target_type = "ip"
313313
}
314314
}
315315

UPGRADE-9.0.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ module "alb" {
410410
target_groups = [
411411
{
412412
name_prefix = "h1"
413-
backend_protocol = "HTTP"
414-
backend_port = 80
413+
protocol = "HTTP"
414+
port = 80
415415
target_type = "instance"
416416
417417
health_check = {
@@ -793,8 +793,8 @@ module "alb" {
793793
target_groups = {
794794
instance = {
795795
name_prefix = "h1"
796-
backend_protocol = "HTTP"
797-
backend_port = 80
796+
protocol = "HTTP"
797+
port = 80
798798
target_type = "instance"
799799
800800
health_check = {

docs/patterns.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ module "alb" {
199199
# This key name is used by the listener/listener rules to know which target to forward traffic to
200200
ex_instance = {
201201
name_prefix = "h1"
202-
backend_protocol = "HTTP"
203-
backend_port = 80
202+
protocol = "HTTP"
203+
port = 80
204204
target_type = "instance"
205205
deregistration_delay = 10
206206
load_balancing_cross_zone_enabled = true
@@ -292,8 +292,8 @@ module "alb" {
292292
293293
target_groups = {
294294
ex_ip = {
295-
backend_protocol = "HTTP"
296-
backend_port = 80
295+
protocol = "HTTP"
296+
port = 80
297297
target_type = "ip"
298298
deregistration_delay = 5
299299
load_balancing_cross_zone_enabled = true

examples/complete-alb/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ module "alb" {
348348
target_groups = {
349349
ex-instance = {
350350
name_prefix = "h1"
351-
backend_protocol = "HTTP"
352-
backend_port = 80
351+
protocol = "HTTP"
352+
port = 80
353353
target_type = "instance"
354354
deregistration_delay = 10
355355
load_balancing_cross_zone_enabled = false

0 commit comments

Comments
 (0)