Retrieve information about an EC2 DHCP Options configuration.
data "aws_vpc_dhcp_options" "example" {
dhcp_options_id = "dopts-12345678"
}
data "aws_vpc_dhcp_options" "example" {
filter {
name = "key"
values = ["domain-name"]
}
filter {
name = "value"
values = ["example.com"]
}
}
dhcp_options_id
- (Optional) EC2 DHCP Options ID.filter
- (Optional) List of custom filters as described below.For more information about filtering, see the EC2 API documentation.
name
- (Required) Name of the field to filter.values
- (Required) Set of values for filtering.This data source exports the following attributes in addition to the arguments above:
arn
- ARN of the DHCP Options Set.dhcp_options_id
- EC2 DHCP Options IDdomain_name
- Suffix domain name to used when resolving non Fully Qualified Domain NamesE.g., the search
value in the /etc/resolv.conf
file.domain_name_servers
- List of name servers.id
- EC2 DHCP Options IDipv6_address_preferred_lease_time
- How frequently, in seconds, a running instance with an IPv6 assigned to it goes through DHCPv6 lease renewal.netbios_name_servers
- List of NETBIOS name servers.netbios_node_type
- 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
- Map of tags assigned to the resource.owner_id
- ID of the AWS account that owns the DHCP options set.read
- (Default 20m
)