» Data Source: aws_vpc_dhcp_options

Retrieve information about an EC2 DHCP Options configuration.

» Example Usage

» Lookup by DHCP Options ID

data "aws_vpc_dhcp_options" "example" {
  dhcp_options_id = "dopts-12345678"
}

» Lookup by Filter

data "aws_vpc_dhcp_options" "example" {
  filter {
    name   = "key"
    values = ["domain-name"]
  }

  filter {
    name   = "value"
    values = ["example.com"]
  }
}

» Argument Reference

  • dhcp_options_id - (Optional) The EC2 DHCP Options ID.
  • filter - (Optional) List of custom filters as described below.

» filter

For more information about filtering, see the EC2 API documentation.

  • name - (Required) The name of the field to filter.
  • values - (Required) Set of values for filtering.

» Attributes Reference