alicloud_vpc_dhcp_options_set

Provides a VPC Dhcp Options Set resource. DHCP option set.

For information about VPC Dhcp Options Set and how to use it, see What is Dhcp Options Set.

Example Usage

Basic Usage

variable "name" {
  default = "terraform-example"
}

variable "domain" {
  default = "terraform-example.com"
}

resource "alicloud_vpc_dhcp_options_set" "example" {
  dhcp_options_set_name        = var.name
  dhcp_options_set_description = var.name
  domain_name                  = var.domain
  domain_name_servers          = "100.100.2.136"
}

Argument Reference

The following arguments are supported:

associate_vpcs

The associate_vpcs supports the following:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

VPC Dhcp Options Set can be imported using the id, e.g.

$ terraform import alicloud_vpc_dhcp_options_set.example <id>