Skip to content

Instantly share code, notes, and snippets.

@taylorsmithgg
Created September 3, 2017 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taylorsmithgg/9087202876d1e164deea94eb62ab94ed to your computer and use it in GitHub Desktop.
Save taylorsmithgg/9087202876d1e164deea94eb62ab94ed to your computer and use it in GitHub Desktop.
# -----------------------------------------------------------------------------
# NETWORK SERVICES: DHCP
# FIX: modularize: https://github.com/todd-dsm/tf_aws_vpc_dhcp_options
# -----------------------------------------------------------------------------
module "dhcp_options" {
source = "github.com/todd-dsm/tf_aws_vpc_dhcp_options?ref=v0.1"
}
resource "aws_vpc_dhcp_options" "dev" {
domain_name = "dev.ptest.us"
domain_name_servers = ["205.251.194.141"]
ntp_servers = ["104.154.189.119"]
tags {
"Name" = "${var.project}"
"Environment" = "${var.environment}"
"Terraform" = "true"
}
}
resource "aws_vpc_dhcp_options_association" "dns_resolver" {
vpc_id = "${module.vpc.vpc_id}"
dhcp_options_id = "${aws_vpc_dhcp_options.dev.id}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment