Skip to content

Commit

Permalink
Fix examples and update vm type
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-toa committed Jan 14, 2025
1 parent a7d3c1f commit db435f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/public_load_balancer/load_balancer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ output "load_balancer_url" {
}

resource "outscale_load_balancer_vms" "backend_vms" {
count = length(outscale_vm.my_vms)
load_balancer_name = outscale_load_balancer.my_public_lb.load_balancer_name
backend_vm_ids = [outscale_vm.my_vms[count.index].vm_id]
backend_vm_ids = [for _, vm in outscale_vm.my_vms : vm.vm_id]
}

resource "outscale_load_balancer_attributes" "my_health_check" {
Expand Down
2 changes: 1 addition & 1 deletion examples/public_load_balancer/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
#region = "eu-west-2"
#image_id = "OUTSCALE_IMAGEID" #using environment variable

vm_type = "tinav4.c1r1p2"
vm_type = "tinav5.c1r1p2"
vm_count = 2
2 changes: 1 addition & 1 deletion examples/public_load_balancer/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ variable "vm_type" {}
variable "vm_count" {}

variable "suffixe_lbu_name" {
type = string
type = string
}

0 comments on commit db435f8

Please sign in to comment.