» 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

  • dhcp_options_id - EC2 DHCP Options ID
  • domain_name - The suffix domain name to used when resolving non Fully Qualified Domain Names. e.g. the search value in the /etc/resolv.conf file.
  • domain_name_servers - List of name servers.
  • id - EC2 DHCP Options ID
  • netbios_name_servers - List of NETBIOS name servers.
  • netbios_node_type - The NetBIOS node type (1, 2, 4, or 8). For more information about these node types, see RFC 2132.
  • ntp_servers - List of NTP servers.
  • tags - A mapping of tags assigned to the resource.
  • owner_id - The ID of the AWS account that owns the DHCP options set.