Skip to content

Commit

Permalink
docs: Correct key names for protocol and port in target groups (#320)
Browse files Browse the repository at this point in the history
Co-authored-by: Anders K. Pettersen <[email protected]>
  • Loading branch information
staticaland and staticaland authored Nov 3, 2023
1 parent 72bfb35 commit e3586dd
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ module "alb" {
target_groups = {
ex-instance = {
name_prefix = "h1"
backend_protocol = "HTTP"
backend_port = 80
protocol = "HTTP"
port = 80
target_type = "instance"
}
}
Expand Down Expand Up @@ -219,10 +219,10 @@ module "alb" {
target_groups = {
instance = {
name_prefix = "default"
backend_protocol = "HTTPS"
backend_port = 443
target_type = "instance"
name_prefix = "default"
protocol = "HTTPS"
port = 443
target_type = "instance"
}
}
}
Expand Down Expand Up @@ -306,10 +306,10 @@ module "nlb" {
target_groups = {
ex-target = {
name_prefix = "pref-"
backend_protocol = "TCP"
backend_port = 80
target_type = "ip"
name_prefix = "pref-"
protocol = "TCP"
port = 80
target_type = "ip"
}
}
Expand Down
8 changes: 4 additions & 4 deletions UPGRADE-9.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,8 @@ module "alb" {
target_groups = [
{
name_prefix = "h1"
backend_protocol = "HTTP"
backend_port = 80
protocol = "HTTP"
port = 80
target_type = "instance"
health_check = {
Expand Down Expand Up @@ -793,8 +793,8 @@ module "alb" {
target_groups = {
instance = {
name_prefix = "h1"
backend_protocol = "HTTP"
backend_port = 80
protocol = "HTTP"
port = 80
target_type = "instance"
health_check = {
Expand Down
8 changes: 4 additions & 4 deletions docs/patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ module "alb" {
# This key name is used by the listener/listener rules to know which target to forward traffic to
ex_instance = {
name_prefix = "h1"
backend_protocol = "HTTP"
backend_port = 80
protocol = "HTTP"
port = 80
target_type = "instance"
deregistration_delay = 10
load_balancing_cross_zone_enabled = true
Expand Down Expand Up @@ -292,8 +292,8 @@ module "alb" {
target_groups = {
ex_ip = {
backend_protocol = "HTTP"
backend_port = 80
protocol = "HTTP"
port = 80
target_type = "ip"
deregistration_delay = 5
load_balancing_cross_zone_enabled = true
Expand Down
4 changes: 2 additions & 2 deletions examples/complete-alb/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ module "alb" {
target_groups = {
ex-instance = {
name_prefix = "h1"
backend_protocol = "HTTP"
backend_port = 80
protocol = "HTTP"
port = 80
target_type = "instance"
deregistration_delay = 10
load_balancing_cross_zone_enabled = false
Expand Down

0 comments on commit e3586dd

Please sign in to comment.