An access control list contains multiple IP addresses or CIDR blocks. The access control list can help you to define multiple instance listening dimension, and to meet the multiple usage for single access control list.
Server Load Balancer allows you to configure access control for listeners. You can configure different whitelists or blacklists for different listeners.
You can configure access control when you create a listener or change access control configuration after a listener is created.
For information about slb and how to use it, see What is Server Load Balancer.
For information about acl and how to use it, see Configure an access control list.
resource "alicloud_slb_acl" "acl" {
name = "terraformslbaclconfig"
ip_version = "ipv4"
}
The following arguments are supported:
name
- (Required) Name of the access control list.ip_version
- (Optional, ForceNew) The IP Version of access control list is the type of its entry (IP addresses or CIDR blocks). It values ipv4/ipv6. Our plugin provides a default ip_version: "ipv4".entry_list
- (Deprecated from v1.162.0 ) A list of entry (CIDR blocks) to be added. It contains two sub-fields as Entry Block
follows. NOTE: "Field 'entry_list' has been deprecated from provider version 1.162.0 and it will be removed in the future version. Please use the new resource 'alicloud_slb_acl_entry_attachment'.",tags
- (Optional, Available in v1.66.0+) A mapping of tags to assign to the resource.resource_group_id
- (Optional, ForceNew, Available in v1.67.0+) Resource group ID.The entry mapping supports the following:
entry
- (Optional, Computed) The CIDR blocks.comment
- (Optional, Computed) The comment of the entry.The following attributes are exported:
id
- The Id of the access control list.Server Load balancer access control list can be imported using the id, e.g.
$ terraform import alicloud_slb_acl.example acl-abc123456