Commit d53f96dd authored by Jarred Trainor's avatar Jarred Trainor Committed by Anton Babenko

Add support for additional tags on VPC (#43)

parent 689db6c3
...@@ -7,7 +7,7 @@ resource "aws_vpc" "this" { ...@@ -7,7 +7,7 @@ resource "aws_vpc" "this" {
enable_dns_hostnames = "${var.enable_dns_hostnames}" enable_dns_hostnames = "${var.enable_dns_hostnames}"
enable_dns_support = "${var.enable_dns_support}" enable_dns_support = "${var.enable_dns_support}"
tags = "${merge(var.tags, map("Name", format("%s", var.name)))}" tags = "${merge(var.tags, var.vpc_tags, map("Name", format("%s", var.name)))}"
} }
################### ###################
......
...@@ -100,6 +100,11 @@ variable "tags" { ...@@ -100,6 +100,11 @@ variable "tags" {
default = {} default = {}
} }
variable "vpc_tags" {
description = "Additional tags for the VPC"
default = {}
}
variable "public_subnet_tags" { variable "public_subnet_tags" {
description = "Additional tags for the public subnets" description = "Additional tags for the public subnets"
default = {} default = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment