Adding tier tags and updating subnet_id data resource filters

pull/516/head
Jonathan Simon 2019-11-24 21:24:17 -08:00
parent 7ded8e1316
commit fbcb75069e
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,8 @@ locals {
data "aws_subnet_ids" "private" {
vpc_id = "${module.vpc.vpc_id}"
tags = {
Tier = "private-${var.prefix}-${var.name}"
Name = "private-${var.prefix}-${var.name}"
Tier = "Private"
}
}

View File

@ -25,13 +25,14 @@ module "vpc" {
Name = "private-${var.prefix}-${var.name}"
Terraform = "true"
Environment = "${local.environment}"
Tier = "Private"
}
public_subnet_tags = {
Name = "public-${var.prefix}-${var.name}"
Terraform = "true"
Environment = "${local.environment}"
Tier = "Public"
}
}