slb
alibaba/slb/alicloud
Terraform module which creates Load balancer and attach ECS instances in it on Alibaba Cloud.
Alibaba Cloud Load Balancer (SLB) Terraform Module terraform-alicloud-slb ===================================================================== English | 简体中文 Terraform module which creates slb resources on Alibaba Cloud. These types of resources are supported: Slb Instance Slb_Backend_Server Slb_Master_Slave_Server_Group Slb_Server_Group Usage ``hcl module "slb" { source = "alibaba/slb/alicloud" ######################## #attach backend servers# ######################## servers_of_default_server_group = [ { server_ids = "i-bp1xxxxxxxxxx1,i-bp1xxxxxxxxxx2" weight = "90" type = "ecs" }, // Using default value { server_ids = "i-bp1xxxxxxxxxx3" } ] ############################# #attach master slave servers# ############################# servers_of_master_slave_server_group = [ { server_ids = "
| Name | Type | Description | Default |
|---|---|---|---|
| servers_of_virtual_server_group | list(map(string)) | A list of servers attaching to virtual server group, it's supports fields 'serve | [] |
| acl_entry_list | list(object({ entry = st | A list of entry (IP addresses or CIDR blocks) to be added. At most 50 etnry can | [] |
| existing_slb_id | string | An existing load balancer instance id. | "" |
| name | string | The name of a new load balancer. | "" |
| master_zone_id | string | The primary zone ID of the SLB instance. If not specified, the system will be ra | "" |
| slave_zone_id | string | The standby zone ID of the SLB instance. If not specified, the system will be ra | "" |
| create_slb_listener | bool | Whether to create slb listener. | false |
| create_slb_rule | bool | Whether to create slb listener. | false |
| create_slb_acl | bool | Whether to create slb acl. | false |
| create | bool | Whether to create load balancer instance. If setting 'use_existing_slb = true' a | true |
| servers_of_default_server_group | list(map(string)) | A list of attached ECS instances, it's supports fields 'server_ids', 'weight'(de | [] |
| acl_name | string | the Name of the access control list. | "" |
| acl_tags | map(string) | A mapping of tags to assign to the resource. | {} |
| internet_charge_type | string | The charge type of load balancer instance internet network. | "PayByTraffic" |
| tags | map(string) | A mapping of tags to assign to the resource. | {} |
| acl_ip_version | string | The IP Version of access control list is the type of its entry (IP addresses or | "ipv4" |
| internal | bool | (Deprecated) It has been deprecated from 1.6.0 and 'address_type' instead. If tr | false |
| use_existing_slb | bool | Whether to use an existing load balancer instance. If true, 'existing_slb_id' sh | false |
| spec | string | The specification of the SLB instance. | "slb.s1.small" |
| master_slave_server_group_name | string | The name master slave server group. If not set, the 'name' and adding suffix '-m | "" |
this_slb_status — The status of the SLBthis_slb_vswitch_id — The vpc id of the SLB belongsthis_slb_tags — The tags of the SLBthis_slb_master_availability_zone — The master availability zone of the SLB belongsthis_slb_virtual_server_group_id — The ID of virtual server groupthis_slb_acl_ip_version — The ip version of the aclthis_slb_acl_entry_attachment — The entry attachment of the aclthis_slb_listener_ids — The id of slb listenersthis_rule_id — The id of the rulethis_rule_name — The name of the rulethis_slb_network_type — The network of the SLBthis_slb_vpc_id — The vpc id of the SLB belongsthis_slb_address — The IP address of the SLBthis_slb_master_slave_servers — List of servers attached to master slave server group.this_slb_acl_id — The id of the aclthis_slb_listener_frontend_port — The frontend_port of slb listenerthis_slb_name — The name of the SLBthis_slb_master_slave_server_group_id — The ID of master slave server group.this_slb_virtual_server_group_name — The name of virtual server groupthis_slb_acl_name — The name of the aclthis_slb_id — The ID of the SLBthis_slb_slave_availability_zone — The slave availability zone of the SLB belongsthis_slb_backend_servers — List of servers attached to default server group.this_slb_master_slave_server_group_name — The name of master slave server groupthis_slb_virtual_servers — List of servers attached to virtual server group.