» 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.

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" "foo" {
     name = "tf-testAccSlbAcl"
     ip_version = "ipv4"
     entry_list = [
       {
         entry="10.10.10.0/24"
         comment="first-a"
       },
       {
         entry="168.10.10.0/24"
         comment="abc-test-abc-b"
       },
     ]
   }

» Argument Reference

The following arguments are supported:

  • name - (Required, ForceNew) 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 - (Optional) A list of entry (IP addresses or CIDR blocks) to be added. At most 50 etnry can be supported in one resource. It contains two sub-fields as Entry Block follows.

» Entry Block

The entry mapping supports the following:

  • entry - (Required) An IP addresses or CIDR blocks.
  • comment - (Optional) 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