全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

ksyun_lb

最近更新时间:2022-06-14 21:21:22

Provides a Load Balancer resource.

Example Usage

resource "ksyun_lb" "default" {
  vpc_id = "74d0a45b-472d-49fc-84ad-221e21ee23aa"
  load_balancer_name = "tf-xun1"
  type = "public"
}

Argument Reference

The following arguments are supported:

  • load_balancer_name - (Optional) The name of the load balancer.
  • vpc_id - (Required) The ID of the VPC linked to the Load Balancers.
  • type - (Optional) The type of load balancer.Valid Values:‘public’, ‘internal’.
  • subnet_id - (Optional) The id of the subnet.only Internal type is Required.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • create_time - The time of creation for load balancer, formatted in RFC3339 time string.
  • private_ip - The IP address of intranet IP. It is “” if internal is false.

Import

LB can be imported using the id, e.g.

$ terraform import ksyun_lb.example fdeba8ca-8aa6-4cd0-8ffa-52ca9e9fef42
文档导读
纯净模式常规模式

纯净模式

点击可全屏预览文档内容
文档反馈