slb

alibaba/slb/alicloud

Terraform Module HCL ALICLOUD

Terraform module which creates Load balancer and attach ECS instances in it on Alibaba Cloud.

Install
module "slb" {
source = "alibaba/slb/alicloud"
version = "2.1.0"
}
plain text: /constructs/tfmod-alibaba-slb-alicloud/install.txt
⭐ Source on GitHub 📦 Registry page
README

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 = "

Inputs (27)
NameTypeDescriptionDefault
servers_of_virtual_server_grouplist(map(string))A list of servers attaching to virtual server group, it's supports fields 'serve[]
acl_entry_listlist(object({ entry = st A list of entry (IP addresses or CIDR blocks) to be added. At most 50 etnry can[]
existing_slb_idstringAn existing load balancer instance id.""
namestringThe name of a new load balancer.""
master_zone_idstringThe primary zone ID of the SLB instance. If not specified, the system will be ra""
slave_zone_idstringThe standby zone ID of the SLB instance. If not specified, the system will be ra""
create_slb_listenerboolWhether to create slb listener.false
create_slb_ruleboolWhether to create slb listener.false
create_slb_aclboolWhether to create slb acl.false
createboolWhether to create load balancer instance. If setting 'use_existing_slb = true' atrue
servers_of_default_server_grouplist(map(string))A list of attached ECS instances, it's supports fields 'server_ids', 'weight'(de[]
acl_namestringthe Name of the access control list.""
acl_tagsmap(string)A mapping of tags to assign to the resource.{}
internet_charge_typestringThe charge type of load balancer instance internet network."PayByTraffic"
tagsmap(string)A mapping of tags to assign to the resource.{}
acl_ip_versionstringThe IP Version of access control list is the type of its entry (IP addresses or "ipv4"
internalbool(Deprecated) It has been deprecated from 1.6.0 and 'address_type' instead. If trfalse
use_existing_slbboolWhether to use an existing load balancer instance. If true, 'existing_slb_id' shfalse
specstringThe specification of the SLB instance."slb.s1.small"
master_slave_server_group_namestringThe name master slave server group. If not set, the 'name' and adding suffix '-m""
Outputs (25)
this_slb_status — The status of the SLB
this_slb_vswitch_id — The vpc id of the SLB belongs
this_slb_tags — The tags of the SLB
this_slb_master_availability_zone — The master availability zone of the SLB belongs
this_slb_virtual_server_group_id — The ID of virtual server group
this_slb_acl_ip_version — The ip version of the acl
this_slb_acl_entry_attachment — The entry attachment of the acl
this_slb_listener_ids — The id of slb listeners
this_rule_id — The id of the rule
this_rule_name — The name of the rule
this_slb_network_type — The network of the SLB
this_slb_vpc_id — The vpc id of the SLB belongs
this_slb_address — The IP address of the SLB
this_slb_master_slave_servers — List of servers attached to master slave server group.
this_slb_acl_id — The id of the acl
this_slb_listener_frontend_port — The frontend_port of slb listener
this_slb_name — The name of the SLB
this_slb_master_slave_server_group_id — The ID of master slave server group.
this_slb_virtual_server_group_name — The name of virtual server group
this_slb_acl_name — The name of the acl
this_slb_id — The ID of the SLB
this_slb_slave_availability_zone — The slave availability zone of the SLB belongs
this_slb_backend_servers — List of servers attached to default server group.
this_slb_master_slave_server_group_name — The name of master slave server group
this_slb_virtual_servers — List of servers attached to virtual server group.
Resources (4)
alicloud_slbalicloud_slb_backend_serveralicloud_slb_master_slave_server_groupalicloud_slb_server_group
Details
FrameworkTerraform Module
LanguageHCL
Version2.1.0
Cloud ALICLOUD
★ Stars7
Forks18
Total downloads4.8k
Inputs27
Outputs25
Resources4
Examples7
Submodules3
LicenseMIT
Namespacealibaba
Updated