Skip to content

Commit

Permalink
chore: fixing up the reference to the images
Browse files Browse the repository at this point in the history
  • Loading branch information
gambol99 committed Apr 9, 2024
1 parent aa7ec71 commit ad2c624
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Notes:

<p align="center">
</br>
<img src="https://raw.githubusercontent.com/appvia/terraform-aws-connectivity/main/docs/egress-vpc.png" alt="Egress VPC">
<img src="https://github.com/appvia/terraform-aws-connectivity/blob/feat_endppoints/docs/egress-vpc.png" alt="Egress VPC">
</p>

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.
Expand Down Expand Up @@ -161,7 +161,7 @@ module "connectivity" {

<p align="center">
</br>
<img src="https://raw.githubusercontent.com/appvia/terraform-aws-connectivity/main/docs/ingress-vpc.png" alt="Ingress VPC">
<img src="https://github.com/appvia/terraform-aws-connectivity/blob/feat_endppoints/docs/ingress-vpc.png" alt="Ingress VPC">
</p>

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.
Expand Down
44 changes: 32 additions & 12 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit ad2c624

Please sign in to comment.