changed vpc data resource for aws_subnet_ids referencing the module vpc id

pull/516/head
Jonathan Simon 2019-11-24 20:57:18 -08:00
parent ceb4ac5678
commit fe393775a4
1 changed files with 5 additions and 4 deletions

View File

@ -2,10 +2,11 @@ locals {
service = "${var.prefix}-${var.name}-cp"
}
data "aws_vpc" "main" {
filter {
name = "tag:Name"
values = ["${var.prefix}-${var.name}"]
data "aws_subnet_ids" "private" {
vpc_id = "${module.vpc.id}"
tags = {
Tier = "Private"
}
}