Data Source: aws_ec2_managed_prefix_list

aws_ec2_managed_prefix_list provides details about a specific AWS prefix list or customer-managed prefix list in the current region.

Example Usage

Find the regional DynamoDB prefix list

data "aws_region" "current" {}

data "aws_ec2_managed_prefix_list" "example" {
  name = "com.amazonaws.${data.aws_region.current.name}.dynamodb"
}

Find a managed prefix list using filters

data "aws_ec2_managed_prefix_list" "example" {
  filter {
    name   = "prefix-list-name"
    values = ["my-prefix-list"]
  }
}

Argument Reference

The arguments of this data source act as filters for querying the available prefix lists. The given filters must match exactly one prefix list whose data will be exported as attributes.

filter Configuration Block

The filter configuration block supports the following arguments:

Attribute Reference

This data source exports the following attributes in addition to the arguments above:

Timeouts

Configuration options: