Skip to content

Commit

Permalink
Add extra tags for DHCP option set (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortypowers authored and antonbabenko committed Dec 6, 2017
1 parent 50d1588 commit 8fc476b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resource "aws_vpc_dhcp_options" "this" {
netbios_name_servers = "${var.dhcp_options_netbios_name_servers}"
netbios_node_type = "${var.dhcp_options_netbios_node_type}"

tags = "${merge(var.tags, map("Name", format("%s", var.name)))}"
tags = "${merge(var.tags, var.dhcp_options_tags, map("Name", format("%s", var.name)))}"
}

###############################
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ variable "elasticache_subnet_tags" {
default = {}
}

variable "dhcp_options_tags" {
description = "Additional tags for the DHCP option set"
default = {}
}

variable "enable_dhcp_options" {
description = "Should be true if you want to specify a DHCP options set with a custom domain name, DNS servers, NTP servers, netbios servers, and/or netbios server type"
default = false
Expand Down

0 comments on commit 8fc476b

Please sign in to comment.