Skip to content

Commit

Permalink
Add suffix random string on LBU_name
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-toa committed Oct 1, 2024
1 parent 3aa9a0f commit 67c5e7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/public_load_balancer/load_balancer.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
resource "random_string" "random" {
length = 16
special = false
}
resource "outscale_load_balancer" "my_public_lb" {
subregion_names = ["${var.region}a"]
load_balancer_name = "my-public-lb"
load_balancer_name = "my-lb-${random_string.random.result}"
listeners {
backend_port = 80
backend_protocol = "HTTP"
Expand Down
4 changes: 4 additions & 0 deletions examples/public_load_balancer/outscale.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ terraform {
source = "outscale/outscale"
version = ">= 0.11.0"
}
random = {
source = "hashicorp/random"
version = ">= 3.6.3"
}
}
}

Expand Down

0 comments on commit 67c5e7f

Please sign in to comment.