Skip to main content
Version: v1.7

Alibaba Cloud SLB-RULE

Description

Terraform-based module creates an SLB instance under AliCloud's VPC and configures rules.

Specification

NameDescriptionTypeRequiredDefault
address_typeThe type of address. Choices are 'intranet' and 'internet'. Default to 'internet'.stringfalse
availability_zoneThe available zone to launch modules.stringfalse
available_disk_categoryFilter the results by a specific disk category. Can be either cloud, cloud_efficiency, cloud_ssd, ephemeral_ssd.stringfalse
available_resource_creationType of resources that can be created.stringfalse
backend_portPort used by the Server Load Balancer instance backend. Valid value range: [1-65535].numberfalse
bandwidthBandwidth peak of Listener.numberfalse
cidr_blockThe CIDR block for the VPC. The cidr_block is Optional and default value is 172.16.0.0/12 after v1.119.0+.stringfalse
cookieThe cookie configured on the server. It is mandatory when sticky_session is on and sticky_session_type is server. Otherwise, it will be ignored. Valid value:String in line with RFC 2965, with length being 1- 200. It only contains characters such as ASCII codes, English letters and digits instead of the comma, semicolon or spacing, and it cannot start with $.stringfalse
cookie_timeoutCookie timeout. It is mandatory when sticky_session is on and sticky_session_type is insert. Otherwise, it will be ignored. Valid value range: [1-86400] in seconds.numberfalse
cpu_core_countNumber of CPU cores.numberfalse
domainDomain name of the forwarding rule. It can contain letters a-z, numbers 0-9, hyphens (-), and periods (.), and wildcard characters.stringfalse
frontend_portPort used by the Server Load Balancer instance frontend.numberfalse
health_checkWhether to enable health check. Valid values are on and off. TCP and UDP listener's HealthCheck is always on, so it will be ignore when launching TCP or UDP listener. This parameter is required and takes effect only when ListenerSync is set to off.stringfalse
health_check_connect_portPort used for health check. Valid value range: [1-65535]. Default to None means the backend server port is used.stringfalse
health_check_domainDomain name used for health check. When it used to launch TCP listener, health_check_type must be http. Its length is limited to 1-80 and only characters such as letters, digits, ‘-‘ and ‘.’ are allowed. When it is not set or empty, Server Load Balancer uses the private network IP address of each backend server as Domain used for health check.stringfalse
health_check_http_codeRegular health check HTTP status code. Multiple codes are segmented by “,”. It is required when health_check is on. Default to http_2xx. Valid values are: http_2xx, http_3xx, http_4xx and http_5xx.stringfalse
health_check_intervalTime interval of health checks. It is required when health_check is on. Valid value range: [1-50] in seconds. Default to 2.numberfalse
health_check_timeoutMaximum timeout of each health check response. It is required when health_check is on. Valid value range: [1-300] in seconds. Default to 5. Note: If health_check_timeout < health_check_interval, its will be replaced by health_check_interval.numberfalse
health_check_uriURI used for health check. When it used to launch TCP listener, health_check_type must be http. Its length is limited to 1-80 and it must start with /. Only characters such as letters, digits, ‘-’, ‘/’, ‘.’, ‘%’, ‘?’, #’ and ‘&’ are allowed.stringfalse
healthy_thresholdThreshold determining the result of the health check is success. It is required when health_check is on. Valid value range: [1-10] in seconds. Default to 3.numberfalse
images_most_recentIf more than one result are returned, select the most recent one.boolfalse
images_name_regexA regex string to filter resulting images by name.stringfalse
images_ownersFilter results by a specific image owner. Valid items are system, self, others, marketplace.stringfalse
internalIt has been deprecated from 1.6.0 and 'address_type' instead. If true, SLB instance will be an internal SLB.boolfalse
listener_syncIndicates whether a forwarding rule inherits the settings of a health check , session persistence, and scheduling algorithm from a listener. Default to on.stringfalse
memory_sizeSize of memory, measured in GB.numberfalse
nameThe name of a new load balancer.stringfalse
protocolThe protocol to listen on.stringfalse
rule_health_check_connect_portPort used for health check. Valid value range: [1-65535]. Default to None means the backend server port is used.numberfalse
schedulerScheduling algorithm, Valid values are wrr, rr and wlc. Default to wrr. This parameter is required and takes effect only when ListenerSync is set to off.stringfalse
specThe specification of the SLB instance.stringfalse
sticky_sessionWhether to enable session persistence, Valid values are on and off. Default to off. This parameter is required and takes effect only when ListenerSync is set to off.stringfalse
sticky_session_typeMode for handling the cookie. If sticky_session is on, it is mandatory. Otherwise, it will be ignored. Valid values are insert and server. insert means it is inserted from Server Load Balancer; server means the Server Load Balancer learns from the backend server.stringfalse
tagsA mapping of tags to assign to the resource.map(string)false
unhealthy_thresholdThreshold determining the result of the health check is fail. It is required when health_check is on. Valid value range: [1-10] in seconds. Default to 3.numberfalse
urlDomain of the forwarding rule. It must be 2-80 characters in length. Only letters a-z, numbers 0-9, and characters '-' '/' '?' '%' '#' and '&' are allowed. URLs must be started with the character '/', but cannot be '/' alone.stringfalse
vswitch_idVSwitch variables, if vswitch_id is empty, then the net_type = classic.stringfalse
writeConnectionSecretToRefThe secret which the cloud resource connection will be written to.writeConnectionSecretToReffalse

writeConnectionSecretToRef

NameDescriptionTypeRequiredDefault
nameThe secret name which the cloud resource connection will be written to.stringtrue
namespaceThe secret namespace which the cloud resource connection will be written to.stringfalse