Terraform data source for getting information about AWS EC2 Public IPv4 Pools.
# Returns all public IPv4 pools.
data "aws_ec2_public_ipv4_pools" "example" {}
data "aws_ec2_public_ipv4_pools" "example" {
filter {
name = "tag-key"
values = ["ExampleTagKey"]
}
}
The following arguments are optional:
filter
- (Optional) Custom filter block as described below.tags
- (Optional) Map of tags, each pair of which must exactly match a pair on the desired pools.More complex filters can be expressed using one or more filter
sub-blocks,
which take the following arguments:
name
- (Required) Name of the field to filter by, as defined by the underlying AWS API.values
- (Required) Set of values that are accepted for the given field. Pool IDs will be selected if any one of the given values match.This data source exports the following attributes in addition to the arguments above:
pool_ids
- List of all the pool IDs found.