alicloud_ga_acl_entry_attachment
更新时间:
Provides a Global Accelerator (GA) Acl Entry Attachment resource.
For information about Global Accelerator (GA) Acl Entry Attachment and how to use it, see What is Acl Entry Attachment.
-> NOTE: Available since v1.190.0.
Example Usage
Basic Usage
variable "name" {
default = "terraform-example"
}
resource "alicloud_ga_acl" "default" {
address_ip_version = "IPv4"
acl_name = var.name
}
resource "alicloud_ga_acl_entry_attachment" "default" {
acl_id = alicloud_ga_acl.default.id
entry = "192.168.1.1/32"
entry_description = var.name
}
Argument Reference
The following arguments are supported:
acl_id
- (Required, ForceNew) The ID of the Acl.entry
- (Required, ForceNew) The entry (IP address or CIDR block) that you want to add.entry_description
- (Optional, ForceNew) The description of the entry. The description must be1
to256
characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Acl Entry Attachment. It formats as<acl_id>:<entry>
.status
- The status of the Acl Entry Attachment.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Acl Entry Attachment.delete
- (Defaults to 5 mins) Used when delete the Acl Entry Attachment.
Import
Global Accelerator (GA) Acl Entry Attachment can be imported using the id, e.g.
$ terraform import alicloud_ga_acl_entry_attachment.example <acl_id>:<entry>
该文章对您有帮助吗?