0
0
llucycodes42
The following code defines a resource named "ibm_lb" with the following attributes:
connections : 250
datacenter : ""
ha_enabled : false
dedicated : false
The following code defines a resource named "ibm_lb_service_group" with the following attributes:
port :
routing_method : ""
routing_type : "HTTP"
load_balancer_id : "${ibm_lb.myResourceName.id}"
allocation :
The following code defines a resource named "ibm_lb_service" with the following attributes:
port : 80
enabled : true
service_group_id : "${ibm_lb_service_group.myResourceName_lb_service_group.service_group_id}"
weight : 1
health_check_type : ""
ip_address_id : "${ibm_compute_vm_instance.myResourceName.
Shortcut: tf_ibm_lb_service
resource "ibm_lb" "${myResourceName}" {
connections = 250
datacenter = ""
ha_enabled = false
dedicated = false
}
resource "ibm_lb_service_group" "${myResourceName}" {
port =
routing_method = ""
routing_type = "HTTP"
load_balancer_id = "${ibm_lb.myResourceName.id}"
allocation =
}
resource "ibm_lb_service" "${myResourceName}" {
port = 80
enabled = true
service_group_id = "${ibm_lb_service_group.myResourceName_lb_service_group.service_group_id}"
weight = 1
health_check_type = ""
ip_address_id = "${ibm_compute_vm_instance.myResourceName.ip_address_id}"
}