The current VPC module outputs cover only basic resources (VPC ID, subnet IDs, NAT Gateway IDs).
To make the module more reusable and production-ready, the following outputs should be added:
VPC Name (vpc_name)
Internet Gateway ID (internet_gateway_id)
Public and private route table IDs (public_route_table_ids, private_route_table_ids)
Subnet CIDR blocks (public_subnet_cidrs, private_subnet_cidrs)
NAT Gateway Elastic IPs (nat_gateway_elastic_ips)
Impact:
Enables easier integration with other modules (security, EC2, apps)
Provides better visibility and flexibility for multi-environment deployments
Proposed Fix:
Update outputs.tf to include the above outputs.
Ensure backward compatibility with existing outputs.
The current VPC module outputs cover only basic resources (VPC ID, subnet IDs, NAT Gateway IDs).
To make the module more reusable and production-ready, the following outputs should be added:
VPC Name (vpc_name)
Internet Gateway ID (internet_gateway_id)
Public and private route table IDs (public_route_table_ids, private_route_table_ids)
Subnet CIDR blocks (public_subnet_cidrs, private_subnet_cidrs)
NAT Gateway Elastic IPs (nat_gateway_elastic_ips)
Impact:
Enables easier integration with other modules (security, EC2, apps)
Provides better visibility and flexibility for multi-environment deployments
Proposed Fix:
Update outputs.tf to include the above outputs.
Ensure backward compatibility with existing outputs.