For information about acl entry attachment and how to use it, see Configure an acl entry.
resource "alicloud_slb_acl" "attachment" {
name = "forSlbAclEntryAttachment"
ip_version = "ipv4"
}
resource "alicloud_slb_acl_entry_attachment" "attachment" {
acl_id = alicloud_slb_acl.attachment.id
entry = "168.10.10.0/24"
comment = "second"
}
The following arguments are supported:
acl_id
- (Required, ForceNew) The ID of the Acl.entry
- (Required, ForceNew) The CIDR blocks.comment
- (Optional, ForceNew) The comment of the entry.The following attributes are exported:
id
- The ID of the resource. The value formats as <acl_id>:<entry>
.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the resource.delete
- (Defaults to 5 mins) Used when delete the resource.Acl entry attachment can be imported using the id, e.g.
$ terraform import alicloud_slb_acl_entry_attachment.example <acl_id>:<entry>