Added in connecting the gauntlet VPC to a VPC that can be reached via the VPN

This commit is contained in:
Fletcher Haynes 2022-01-06 17:07:14 -08:00
parent e550925fba
commit 56cf9f43f5
3 changed files with 16 additions and 0 deletions

View file

@ -4,4 +4,8 @@ output "ingest_ips" {
output "data_node_ips" {
value = aws_instance.fb_cluster_nodes.*.private_ip
}
output "vpc_id" {
value = module.vpc.vpc_id
}

View file

@ -12,3 +12,10 @@ module "samsung-cluster" {
gitlab_token = var.gitlab_token
branch = var.branch
}
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
}

View file

@ -6,4 +6,9 @@ output "ingest_ips" {
output "data_node_ips" {
description = "List of data node IPs"
value = module.samsung-cluster.data_node_ips
}
output "vpc_id" {
description = "ID of the gauntlet VPC"
value = module.samsung-cluster.vpc_id
}