From 70833218b1cf3ca983525d1495bc6be7e966eec2 Mon Sep 17 00:00:00 2001 From: Fletcher Haynes Date: Fri, 7 Jan 2022 06:58:02 -0800 Subject: [PATCH] Added in auto-peering of smoketest VPC --- qa/tf/ci/smoketest/main.tf | 6 ++++++ qa/tf/ci/smoketest/outputs.tf | 5 +++++ qa/tf/gauntlet/samsung/main.tf | 1 - 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/qa/tf/ci/smoketest/main.tf b/qa/tf/ci/smoketest/main.tf index 80753a1f9..6baed6889 100644 --- a/qa/tf/ci/smoketest/main.tf +++ b/qa/tf/ci/smoketest/main.tf @@ -9,3 +9,9 @@ module "ci-cluster" { gitlab_token = var.gitlab_token branch = var.branch } + +resource "aws_vpc_peering_connection" "gauntlet-to-vpn" { + vpc_id = module.ci-cluster.vpc_id + peer_vpc_id = "vpc-0cb7cf76f2079aa0e" + auto_accept = true +} \ No newline at end of file diff --git a/qa/tf/ci/smoketest/outputs.tf b/qa/tf/ci/smoketest/outputs.tf index adcc96dc9..711c6ae13 100644 --- a/qa/tf/ci/smoketest/outputs.tf +++ b/qa/tf/ci/smoketest/outputs.tf @@ -6,4 +6,9 @@ output "ingest_ips" { output "data_node_ips" { description = "List of data node IPs" value = module.ci-cluster.data_node_ips +} + +output "vpc_id" { + description = "ID of the gauntlet VPC" + value = module.samsung-cluster.vpc_id } \ No newline at end of file diff --git a/qa/tf/gauntlet/samsung/main.tf b/qa/tf/gauntlet/samsung/main.tf index 4d899dae1..6cc08bd31 100644 --- a/qa/tf/gauntlet/samsung/main.tf +++ b/qa/tf/gauntlet/samsung/main.tf @@ -14,7 +14,6 @@ module "samsung-cluster" { } resource "aws_vpc_peering_connection" "gauntlet-to-vpn" { - peer_vpc_id = aws_vpc.bar.id vpc_id = module.samsung-cluster.vpc_id peer_vpc_id = "vpc-0cb7cf76f2079aa0e" auto_accept = true