Provides a ECS Prefix List resource.
For information about ECS Prefix List and how to use it, see What is Prefix List..
Basic Usage
resource "alicloud_ecs_prefix_list" "default" {
address_family = "IPv4"
max_entries = 2
prefix_list_name = "tftest"
description = "description"
entry {
cidr = "192.168.0.0/24"
description = "description"
}
}
The following arguments are supported:
address_family
- (Required, ForceNew) The IP address family. Valid values: IPv4
,IPv6
.max_entries
- (Required, ForceNew) The maximum number of entries that the prefix list can contain. Valid values: 1 to 200.prefix_list_name
- (Required) The name of the prefix. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http://
, https://
, com.aliyun
, or com.alibabacloud
. It can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).description
- (Optional) The description of the prefix list. The description must be 2 to 256 characters in length and cannot start with http://
or https://
.entry
- (Required) The Entry. The details see Block entry
. The entry supports the following:
cidr
- (Optional) The CIDR block in entry. This parameter is empty by default. Take note of the following items:
max_entries
value.IPv4
and IPv6
CIDR blocks in a single entry.max_entries
value.description
- (Optional) The description in entry. The description must be 2 to 32 characters in length and cannot start with http://
or https://
.The following attributes are exported:
id
- The resource ID in terraform of Prefix List.ECS Prefix List can be imported using the id, e.g.
$ terraform import alicloud_ecs_prefix_list.example <id>