|
| 1 | + |
| 2 | +output "vpc_id" { |
| 3 | + description = "The ID of the VPC" |
| 4 | + value = module.vpc.vpc_id |
| 5 | +} |
| 6 | + |
| 7 | +output "vpc_cidr" { |
| 8 | + description = "The CIDR block of the VPC" |
| 9 | + value = module.vpc.vpc_attributes.cidr_block |
| 10 | +} |
| 11 | + |
| 12 | +output "vpc_attributes" { |
| 13 | + description = "The attributes of the VPC (see aws-ia/vpc/aws for details)" |
| 14 | + value = module.vpc.vpc_attributes |
| 15 | +} |
| 16 | + |
| 17 | +output "private_subnet_cidrs" { |
| 18 | + description = "A list of the CIDRs for the private subnets" |
| 19 | + value = module.vpc.private_subnet_cidrs |
| 20 | +} |
| 21 | + |
| 22 | +output "public_subnet_cidrs" { |
| 23 | + description = "A list of the CIDRs for the public subnets i.e. [subnet_cidr, subnet_cidr]" |
| 24 | + value = module.vpc.public_subnet_cidrs |
| 25 | +} |
| 26 | + |
| 27 | +output "private_subnet_cidr_by_id" { |
| 28 | + description = "A map of the private subnet ID to CIDR block i.e. us-west-2a => subnet_cidr" |
| 29 | + value = module.vpc.private_subnet_cidr_by_id |
| 30 | +} |
| 31 | + |
| 32 | +output "public_subnet_cidr_by_id" { |
| 33 | + description = "A map of the public subnet ID to CIDR block i.e. us-west-2a => subnet_cidr" |
| 34 | + value = module.vpc.public_subnet_cidr_by_id |
| 35 | +} |
| 36 | + |
| 37 | +output "private_subnet_id_by_az" { |
| 38 | + description = "A map of availability zone to subnet id of the private subnets i.e. eu-west-2a => subnet_id" |
| 39 | + value = module.vpc.private_subnet_id_by_az |
| 40 | +} |
| 41 | + |
| 42 | +output "public_subnet_id_by_az" { |
| 43 | + description = "A map of availability zone to subnet id of the public subnets i.e. eu-west-2a => subnet_id" |
| 44 | + value = module.vpc.public_subnet_id_by_az |
| 45 | +} |
| 46 | + |
| 47 | +output "private_subnet_attributes_by_az" { |
| 48 | + description = "The attributes of the private subnets (see aws-ia/vpc/aws for details)" |
| 49 | + value = module.vpc.private_subnet_attributes_by_az |
| 50 | +} |
| 51 | + |
| 52 | +output "public_subnet_attributes_by_az" { |
| 53 | + description = "The attributes of the public subnets (see aws-ia/vpc/aws for details)" |
| 54 | + value = module.vpc.public_subnet_attributes_by_az |
| 55 | +} |
| 56 | + |
| 57 | +output "transit_subnet_attributes_by_az" { |
| 58 | + description = "The attributes of the transit gateway subnets (see aws-ia/vpc/aws for details)" |
| 59 | + value = module.vpc.transit_subnet_attributes_by_az |
| 60 | +} |
| 61 | + |
| 62 | +output "natgw_id_per_az" { |
| 63 | + description = "The IDs of the NAT Gateways (see aws-ia/vpc/aws for details)" |
| 64 | + value = module.vpc.natgw_id_per_az |
| 65 | +} |
| 66 | + |
| 67 | +output "rt_attributes_by_type_by_az" { |
| 68 | + description = "The attributes of the route tables (see aws-ia/vpc/aws for details)" |
| 69 | + value = module.vpc.rt_attributes_by_type_by_az |
| 70 | +} |
| 71 | + |
| 72 | +output "private_subnet_ids" { |
| 73 | + description = "The IDs of the private subnets i.e. [subnet_id, subnet_id]" |
| 74 | + value = module.vpc.private_subnet_ids |
| 75 | +} |
| 76 | + |
| 77 | +output "public_subnet_ids" { |
| 78 | + description = "The IDs of the public subnets i.e. [subnet_id, subnet_id]" |
| 79 | + value = module.vpc.public_subnet_ids |
| 80 | +} |
| 81 | + |
| 82 | +output "transit_subnet_ids" { |
| 83 | + description = "The IDs of the transit gateway subnets ie. [subnet_id, subnet_id]" |
| 84 | + value = module.vpc.transit_subnet_ids |
| 85 | +} |
| 86 | + |
| 87 | +output "private_route_table_ids" { |
| 88 | + description = "The IDs of the private route tables ie. [route_table_id, route_table_id]" |
| 89 | + value = module.vpc.private_route_table_ids |
| 90 | +} |
| 91 | + |
| 92 | +output "public_route_table_ids" { |
| 93 | + description = "The IDs of the public route tables ie. [route_table_id, route_table_id]" |
| 94 | + value = module.vpc.public_route_table_ids |
| 95 | +} |
| 96 | + |
| 97 | +output "transit_route_table_ids" { |
| 98 | + description = "The IDs of the transit gateway route tables ie. [route_table_id, route_table_id]" |
| 99 | + value = module.vpc.transit_route_table_ids |
| 100 | +} |
| 101 | + |
| 102 | +output "transit_route_table_by_az" { |
| 103 | + description = "A map of availability zone to transit gateway route table ID i.e eu-west-2a => route_table_id" |
| 104 | + value = module.vpc.transit_route_table_by_az |
| 105 | +} |
| 106 | + |
| 107 | +output "transit_gateway_attachment_id" { |
| 108 | + description = "The ID of the transit gateway attachment if enabled" |
| 109 | + value = module.vpc.transit_gateway_attachment_id |
| 110 | +} |
| 111 | + |
| 112 | +output "nat_public_ips" { |
| 113 | + description = "The public IPs of the NAT Gateways i.e [public_ip, public_ip]" |
| 114 | + value = module.vpc.nat_public_ips |
| 115 | +} |
0 commit comments