» ucloud_lb
Provides a Load Balancer resource.
» Example Usage
resource "ucloud_lb" "web" {
name = "tf-example-lb"
tag = "tf-example"
}
» Argument Reference
The following arguments are supported:
-
internal- (Optional) Indicate whether the load balancer is intranet.(Default:"false") -
name- (Optional) The name of the load balancer. If not specified, terraform will autogenerate a name beginning withtf-lb. -
charge_type- Deprecated, argumentcharge_typeis deprecated for optimizing parameters. -
vpc_id- (Optional) The ID of the VPC linked to the Load Balancers, This argumnet is not required if default VPC. -
subnet_id- (Optional) The ID of subnet that intrant load balancer belongs to. This argumnet is not required if default subnet. -
tag- (Optional) A tag assigned to load balancer, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:Default). -
remark- (Optional) The remarks of the load balancer. (Default:"").
» 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. -
expire_time- Deprecated attributeexpire_timeis deprecated for optimizing outputs. -
ip_set- It is a nested type which documented below. -
private_ip- The IP address of intranet IP. It is""ifinternalisfalse.
The attribute (ip_set) support the following:
-
internet_type- Type of Elastic IP routes. -
ip- Elastic IP address.
» Import
LB can be imported using the id, e.g.
$ terraform import ucloud_lb.example ulb-abc123456