From de9f962551c3d27d3ffdab739692a1227847e808 Mon Sep 17 00:00:00 2001 From: Jacob Woffenden Date: Thu, 27 Jun 2024 11:07:50 +0000 Subject: [PATCH] Revert to hardcoded TGW Signed-off-by: Jacob Woffenden --- .../analytical-platform-compute/data.tf | 19 +++++++++---------- .../transit-gateway-vpc-attachments.tf | 2 +- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/terraform/environments/analytical-platform-compute/data.tf b/terraform/environments/analytical-platform-compute/data.tf index 45bebab654a..53e6982e72c 100644 --- a/terraform/environments/analytical-platform-compute/data.tf +++ b/terraform/environments/analytical-platform-compute/data.tf @@ -4,17 +4,16 @@ data "aws_ec2_transit_gateway" "pttp" { id = "tgw-026162f1ba39ce704" } -data "aws_ram_resource_share" "moj_tgw" { - resource_owner = "OTHER-ACCOUNTS" - filter { - name = "resourceType" - values = ["ec2:TransitGateway"] - } -} +# data "aws_ram_resource_share" "moj_tgw" { +# filter { +# name = "resourceType" +# values = ["ec2:TransitGateway"] +# } +# } -data "aws_arn" "moj_tgw" { - arn = data.aws_ram_resource_share.moj_tgw.resource_arns[0] -} +# data "aws_arn" "moj_tgw" { +# arn = data.aws_ram_resource_share.moj_tgw.resource_arns[0] +# } # TODO: revisit this to unhardcode the tgw ID above # data "aws_ram_resource_share" "tgw_moj" { diff --git a/terraform/environments/analytical-platform-compute/transit-gateway-vpc-attachments.tf b/terraform/environments/analytical-platform-compute/transit-gateway-vpc-attachments.tf index e4ce8e9f14e..7844e540d2e 100644 --- a/terraform/environments/analytical-platform-compute/transit-gateway-vpc-attachments.tf +++ b/terraform/environments/analytical-platform-compute/transit-gateway-vpc-attachments.tf @@ -1,6 +1,6 @@ resource "aws_ec2_transit_gateway_vpc_attachment" "pttp" { # transit_gateway_id = data.aws_ec2_transit_gateway.pttp.id - transit_gateway_id = data.aws_arn.moj_tgw.resource + # transit_gateway_id = data.aws_arn.moj_tgw.resource vpc_id = module.vpc.vpc_id subnet_ids = module.vpc.private_subnets