From ad2c6244a0a2effb5a171c4575c3c877eb507181 Mon Sep 17 00:00:00 2001 From: Rohith Jayawardene Date: Tue, 9 Apr 2024 08:53:47 +0100 Subject: [PATCH] chore: fixing up the reference to the images --- README.md | 4 ++-- outputs.tf | 44 ++++++++++++++++++++++++++++++++------------ 2 files changed, 34 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 827d459..58adbae 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ Notes:


- Egress VPC + Egress VPC

By adding a `var.connectivity_config.egress` object, the module will provision the necessary resources to route traffic to the internet via a shared egress VPC. Routing within the choose network layout (inspection, or trusted) is automatically provisioned accordingly. @@ -161,7 +161,7 @@ module "connectivity" {


- Ingress VPC + Ingress VPC

By adding a `var.connectivity_config.ingress` object, the module will provision the necessary resources to route traffic from the internet to the tenant VPCs. Routing within the choose network layout (inspection, or trusted) is automatically provisioned accordingly. Note, this module does not provisioned the load balancers and or WAF devices depicted in the diagram; purely the VPC and connectivity. diff --git a/outputs.tf b/outputs.tf index ff98d07..cb3f9f6 100644 --- a/outputs.tf +++ b/outputs.tf @@ -6,62 +6,82 @@ output "connectivity_type" { output "egress_vpc_id" { description = "The ID of the VPC that is used for egress traffic." - value = local.enable_egress ? module.egress_vpc.vpc_id : null + value = local.enable_egress ? module.egress_vpc[0].vpc_id : null } output "egress_vpc_private_subnet_attributes_by_az" { description = "The attributes of the egress VPC." - value = local.enable_egress ? module.egress_vpc.private_subnet_attributes_by_az : null + value = local.enable_egress ? module.egress_vpc[0].private_subnet_attributes_by_az : null } output "egress_vpc_public_subnet_attributes_by_az" { description = "The attributes of the egress VPC." - value = local.enable_egress ? module.egress_vpc.public_subnet_attributes_by_az : null + value = local.enable_egress ? module.egress_vpc[0].public_subnet_attributes_by_az : null } output "egress_vpc_id_rt_attributes_by_type_by_az" { description = "The route table attributes of the egress VPC." - value = local.enable_egress ? module.egress_vpc.rt_attributes_by_type_by_az : null + value = local.enable_egress ? module.egress_vpc[0].rt_attributes_by_type_by_az : null } output "ingress_vpc_id" { description = "The ID of the VPC that is used for ingress traffic." - value = local.enable_ingress ? module.ingress_vpc.vpc_id : null + value = local.enable_ingress ? module.ingress_vpc[0].vpc_id : null } output "ingress_vpc_private_subnet_attributes_by_az" { description = "The attributes of the ingress VPC." - value = local.enable_ingress ? module.ingress_vpc.private_subnet_attributes_by_az : null + value = local.enable_ingress ? module.ingress_vpc[0].private_subnet_attributes_by_az : null } output "ingress_vpc_public_subnet_attributes_by_az" { description = "The attributes of the ingress VPC." - value = local.enable_ingress ? module.ingress_vpc.public_subnet_attributes_by_az : null + value = local.enable_ingress ? module.ingress_vpc[0].public_subnet_attributes_by_az : null } output "ingress_vpc_id_rt_attributes_by_type_by_az" { description = "The route table attributes of the ingress VPC." - value = local.enable_ingress ? module.ingress_vpc.rt_attributes_by_type_by_az : null + value = local.enable_ingress ? module.ingress_vpc[0].rt_attributes_by_type_by_az : null +} + +output "endpoints_vpc_id" { + description = "The ID of the VPC that is used for endpoint traffic." + value = local.enable_endpoints ? module.endpoints[0].vpc_id : null +} + +output "endpoints_vpc_private_subnet_attributes_by_az" { + description = "The attributes of the endpoints VPC." + value = local.enable_endpoints ? module.endpoints[0].private_subnet_attributes_by_az : null +} + +output "endpoints_vpc_public_subnet_attributes_by_az" { + description = "The attributes of the endpoints VPC." + value = local.enable_endpoints ? module.endpoints[0].public_subnet_attributes_by_az : null +} + +output "endpoints_vpc_id_rt_attributes_by_type_by_az" { + description = "The route table attributes of the endpoints VPC." + value = local.enable_endpoints ? module.endpoints[0].rt_attributes_by_type_by_az : null } output "inspection_vpc_id" { description = "The ID of the VPC that is used for inspection traffic." - value = local.enable_inspection_vpc_creation ? module.inspection_vpc.vpc_id : null + value = local.enable_inspection_vpc_creation ? module.inspection_vpc[0].vpc_id : null } output "inspection_vpc_private_subnet_attributes_by_az" { description = "The attributes of the inspection VPC." - value = local.enable_inspection_vpc_creation ? module.inspection_vpc.private_subnet_attributes_by_az : null + value = local.enable_inspection_vpc_creation ? module.inspection_vpc[0].private_subnet_attributes_by_az : null } output "inspection_vpc_public_subnet_attributes_by_az" { description = "The attributes of the inspection VPC." - value = local.enable_inspection_vpc_creation ? module.inspection_vpc.public_subnet_attributes_by_az : null + value = local.enable_inspection_vpc_creation ? module.inspection_vpc[0].public_subnet_attributes_by_az : null } output "inspection_vpc_id_rt_attributes_by_type_by_az" { description = "The route table attributes of the inspection VPC." - value = local.enable_inspection_vpc_creation ? module.inspection_vpc.rt_attributes_by_type_by_az : null + value = local.enable_inspection_vpc_creation ? module.inspection_vpc[0].rt_attributes_by_type_by_az : null } output "transit_gateway_id" {