Resource: aws_vpc_dhcp_options_association

Provides a VPC DHCP Options Association resource.

Example Usage

resource "aws_vpc_dhcp_options_association" "dns_resolver" {
  vpc_id          = aws_vpc.foo.id
  dhcp_options_id = aws_vpc_dhcp_options.foo.id
}

Argument Reference

This resource supports the following arguments:

Remarks

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import DHCP associations using the VPC ID associated with the options. For example:

import {
  to = aws_vpc_dhcp_options_association.imported
  id = "vpc-0f001273ec18911b1"
}

Using terraform import, import DHCP associations using the VPC ID associated with the options. For example:

% terraform import aws_vpc_dhcp_options_association.imported vpc-0f001273ec18911b1