Resource: aws_default_vpc_dhcp_options#
Manages the default DHCP options set.
Each AWS region comes with a default set of DHCP options. This is an advanced resource, and has special caveats to be aware of when using it. Please read this document in its entirety before using this resource.
The aws_default_vpc_dhcp_options
behaves differently from normal resources, in that
Terraform does not create this resource, but instead "adopts" it
into management.
Example Usage#
Basic usage with tags:
resource "aws_default_vpc_dhcp_options" "default" {
tags = {
Name = "Default DHCP Option Set"
}
}
Argument Reference#
The arguments of an aws_default_vpc_dhcp_options
differ slightly from aws_vpc_dhcp_options
resources.
Namely, the domain_name
, domain_name_servers
and ntp_servers
arguments are computed.
The following arguments are still supported:
netbios_name_servers
- (Optional) List of NETBIOS name servers.netbios_node_type
- (Optional) The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see RFC 2132.owner_id
- The ID of the project that owns the DHCP options set.tags
- (Optional) Map of tags to assign to the DHCP options set.
Removing aws_default_vpc_dhcp_options
from your configuration#
The aws_default_vpc_dhcp_options
resource allows you to manage a region's default DHCP options set,
but Terraform cannot destroy it. Removing this resource from your configuration
will remove it from your statefile and management, but will not destroy the DHCP options set.
You can resume managing the DHCP options set via the cloud console.
Attribute Reference#
In addition to all arguments above, the following attributes are exported:
id
- The ID of the DHCP options set.arn
- The Amazon Resource Name (ARN) of the DHCP options set.
Import#
VPC DHCP options can be imported using id
, e.g.,
$ terraform import aws_default_vpc_dhcp_options.default_options dopt-d9070ebb