Resource schema of AWS::EC2::PrefixList Type
resource "awscc_ec2_prefix_list" "example_prefix_list" {
address_family = "IPv4"
max_entries = 5
prefix_list_name = "example-ipv4-prefix-list"
entries = [
{
cidr = "10.10.0.0/16"
description = "example network"
},
{
cidr = "192.168.2.8/32"
description = "example host"
}
]
}
resource "awscc_ec2_prefix_list" "example_ipv6_prefix_list" {
address_family = "IPv6"
max_entries = 5
prefix_list_name = "example-ipv6-prefix-list"
entries = [
{
cidr = "2001:db8::/32"
description = "example network"
},
{
cidr = "2001:db8:abcd:0012::0/128"
description = "example host"
}
]
}
address_family
(String) Ip Version of Prefix List.prefix_list_name
(String) Name of Prefix List.entries
(Attributes List) Entries of Prefix List. (see below for nested schema)max_entries
(Number) Max Entries of Prefix List.tags
(Attributes List) Tags for Prefix List (see below for nested schema)arn
(String) The Amazon Resource Name (ARN) of the Prefix List.id
(String) Uniquely identifies the resource.owner_id
(String) Owner Id of Prefix List.prefix_list_id
(String) Id of Prefix List.version
(Number) Version of Prefix List.entries
Required:
cidr
(String)Optional:
description
(String)tags
Required:
key
(String)Optional:
value
(String)Import is supported using the following syntax:
$ terraform import awscc_ec2_prefix_list.example <resource ID>