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

filter

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

Attribute Reference

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

Timeouts

Configuration options: