From fe393775a4bc409db0e97ec7d310475bb41aad06 Mon Sep 17 00:00:00 2001 From: Jonathan Simon Date: Sun, 24 Nov 2019 20:57:18 -0800 Subject: [PATCH] changed vpc data resource for aws_subnet_ids referencing the module vpc id --- terraform/aws/control-plane.tf | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/terraform/aws/control-plane.tf b/terraform/aws/control-plane.tf index 963910a..da8b9bf 100644 --- a/terraform/aws/control-plane.tf +++ b/terraform/aws/control-plane.tf @@ -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" } }