» 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

variable "name" {
  default = "terraformslbaclconfig"
variable "ip_version" {
  default = "ipv4"

resource "alicloud_slb_acl" "default" {
  name       = "${var.name}"
  ip_version = "${var.ip_version}"
  entry_list {
    entry   = ""
    comment = "first"
  entry_list {
    entry   = ""
    comment = "second"

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