W3cubDocs

/Terraform

telefonicaopencloud_elb_backendecs

Manages an elastic loadbalancer backendecs resource within telefonica open cloud.

Example Usage

resource "telefonicaopencloud_elb_loadbalancer" "elb" {
  name = "elb"
  type = "External"
  description = "test elb"
  vpc_id = "e346dc4a-d9a6-46f4-90df-10153626076e"
  admin_state_up = 1
  bandwidth = 5
}

resource "telefonicaopencloud_elb_listener" "listener" {
  name = "test-elb-listener"
  description = "great listener"
  protocol = "TCP"
  backend_protocol = "TCP"
  port = 12345
  backend_port = 8080
  lb_algorithm = "roundrobin"
  loadbalancer_id = "${telefonicaopencloud_elb_loadbalancer.elb.id}"
  timeouts {
    create = "5m"
    update = "5m"
    delete = "5m"
  }
}

resource "telefonicaopencloud_elb_backendecs" "backend" {
  private_address = "192.168.0.211"
  listener_id = "${telefonicaopencloud_elb_listener.listener.id}"
  server_id = "8f7a32f1-f66c-4d13-9b17-3a13f9f0bb8d"
}

Argument Reference

The following arguments are supported:

  • listener_id - (Required) Specifies the listener ID.

  • server_id - (Required) Specifies the backend member ID.

  • private_address - (Required) Specifies the private IP address of the backend member.

Attributes Reference

The following attributes are exported:

  • listener_id - See Argument Reference above.
  • server_id - See Argument Reference above.
  • private_address - See Argument Reference above.
  • public_address - Specifies the floating IP address assigned to the backend member.
  • id - Specifies the backend member ID.
  • status - Specifies the backend ECS status. The value is ACTIVE, PENDING, or ERROR.
  • health_status - Specifies the health check status. The value is NORMAL, ABNORMAL, or UNAVAILABLE.
  • update_time - Specifies the time when information about the backend member was updated.
  • create_time - Specifies the time when the backend member was created.
  • server_name - Specifies the backend member name.
  • listeners - Specifies the listener to which the backend member belongs.

© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/telefonicaopencloud/r/elb_backendecs.html