alicloud_slb_acl

更新时间:

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.

-> NOTE: One access control list can be attached to many Listeners in different load balancer as whitelists or blacklists.

-> NOTE: The maximum number of access control lists per region is 50.

-> NOTE: The maximum number of IP addresses added each time is 50.

-> NOTE: The maximum number of entries per access control list is 300.

-> NOTE: The maximum number of listeners that an access control list can be added to is 50.

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.

Example Usage


resource "alicloud_slb_acl" "acl" {
  name       = "terraformslbaclconfig"
  ip_version = "ipv4"
}

Argument Reference

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.

Entry Block

The entry mapping supports the following:

  • entry - (Optional, Computed) The CIDR blocks.
  • comment - (Optional, Computed) The comment of the entry.

Attributes Reference

The following attributes are exported:

  • id - The Id of the access control list.

Import

Server Load balancer access control list can be imported using the id, e.g.

$ terraform import alicloud_slb_acl.example acl-abc123456