changed vpc data resource for aws_subnet_ids referencing the module vpc id

This commit is contained in:
Jonathan Simon
2019-11-24 20:57:18 -08:00
parent ceb4ac5678
commit fe393775a4

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"
}
}