Skip to content

Commit af5e78e

Browse files
committed
include older output names with deprecation notice
1 parent c7476b7 commit af5e78e

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ Please see our [developer documentation](https://github.com/aws-ia/terraform-aws
152152

153153
| Name | Version |
154154
|------|---------|
155-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.14.0 |
156-
| <a name="provider_awscc"></a> [awscc](#provider\_awscc) | 0.21.0 |
155+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.73.0 |
156+
| <a name="provider_awscc"></a> [awscc](#provider\_awscc) | >= 0.15.0 |
157157

158158
## Modules
159159

@@ -214,10 +214,13 @@ Please see our [developer documentation](https://github.com/aws-ia/terraform-aws
214214
| Name | Description |
215215
|------|-------------|
216216
| <a name="output_nat_gateway_attributes_by_az"></a> [nat\_gateway\_attributes\_by\_az](#output\_nat\_gateway\_attributes\_by\_az) | Map of nat gateway resource attributes by AZ.<br><br>Example:<pre>nat_gateway_attributes_by_az = {<br> "us-east-1a" = {<br> "allocation_id" = "eipalloc-0e8b20303eea88b13"<br> "connectivity_type" = "public"<br> "id" = "nat-0fde39f9550f4abb5"<br> "network_interface_id" = "eni-0d422727088bf9a86"<br> "private_ip" = "10.0.3.40"<br> "public_ip" = <><br> "subnet_id" = "subnet-0f11c92e439c8ab4a"<br> "tags" = tomap({<br> "Name" = "nat-my-public-us-east-1a"<br> })<br> "tags_all" = tomap({<br> "Name" = "nat-my-public-us-east-1a"<br> })<br> }<br> "us-east-1b" = { ... }<br>}</pre> |
217+
| <a name="output_nat_gateways_by_az"></a> [nat\_gateways\_by\_az](#output\_nat\_gateways\_by\_az) | DEPRECATED OUTPUT: this output has been renamed to `nat_gateway_attributes_by_az`. Please transition to that output and see it for a proper description. |
217218
| <a name="output_private_subnet_attributes_by_az"></a> [private\_subnet\_attributes\_by\_az](#output\_private\_subnet\_attributes\_by\_az) | Map of all private subnets containing their attributes.<br><br>Example:<pre>private_subnet_attributes = {<br> "us-east-1a" = {<br> "arn" = "arn:aws:ec2:us-east-1:<>:subnet/subnet-04a86315c4839b519"<br> "assign_ipv6_address_on_creation" = false<br> ...<br> <all attributes of subnet: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/subnet#attributes-reference><br> }<br> "us-east-1b" = {...)<br>}</pre> |
218219
| <a name="output_public_subnet_attributes_by_az"></a> [public\_subnet\_attributes\_by\_az](#output\_public\_subnet\_attributes\_by\_az) | Map of all public subnets containing their attributes.<br><br>Example:<pre>public_subnet_attributes = {<br> "us-east-1a" = {<br> "arn" = "arn:aws:ec2:us-east-1:<>:subnet/subnet-04a86315c4839b519"<br> "assign_ipv6_address_on_creation" = false<br> ...<br> <all attributes of subnet: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/subnet#attributes-reference><br> }<br> "us-east-1b" = {...)<br>}</pre> |
219220
| <a name="output_route_table_attributes_by_type_by_az"></a> [route\_table\_attributes\_by\_type\_by\_az](#output\_route\_table\_attributes\_by\_type\_by\_az) | Map of route tables by type => az => route table attributes. Example usage: module.vpc.route\_table\_by\_subnet\_type.private.id<br><br>Example:<pre>route_table_attributes_by_type_by_az = {<br> "private" = {<br> "us-east-1a" = {<br> "id" = "rtb-0e77040c0598df003"<br> "route_table_id" = "rtb-0e77040c0598df003"<br> "tags" = tolist([<br> {<br> "key" = "Name"<br> "value" = "private-us-east-1a"<br> },<br> ])<br> "vpc_id" = "vpc-033e054f49409592a"<br> }<br> "us-east-1b" = { ... }<br> "public" = { ... }</pre> |
221+
| <a name="output_route_table_by_subnet_type"></a> [route\_table\_by\_subnet\_type](#output\_route\_table\_by\_subnet\_type) | DEPRECATED OUTPUT: this output has been renamed to `route_table_attributes_by_type_by_az`. Please transition to that output and see it for a proper description. |
220222
| <a name="output_subnet_cidrs_by_type_by_az"></a> [subnet\_cidrs\_by\_type\_by\_az](#output\_subnet\_cidrs\_by\_type\_by\_az) | Map of subnets grouped by type with child map { az = cidr }.<br><br>Example:<pre>subnets = {<br> private = {<br> us-east-1a = "10.0.0.0/24"<br> us-east-1b = "10.0.1.0/24"<br> us-east-1c = "10.0.2.0/24"<br> }<br> public = {<br> us-east-1a = "10.0.3.0/24"<br> us-east-1b = "10.0.4.0/24"<br> us-east-1c = "10.0.5.0/24"<br> }<br> }</pre> |
223+
| <a name="output_subnets"></a> [subnets](#output\_subnets) | DEPRECATED OUTPUT: this output has been renamed to `subnet_cidrs_by_type_by_az`. Please transition to that output and see it for a proper description. |
221224
| <a name="output_tgw_subnet_attributes_by_az"></a> [tgw\_subnet\_attributes\_by\_az](#output\_tgw\_subnet\_attributes\_by\_az) | Map of all tgw subnets containing their attributes.<br><br>Example:<pre>tgw_subnet_attributes = {<br> "us-east-1a" = {<br> "arn" = "arn:aws:ec2:us-east-1:<>:subnet/subnet-04a86315c4839b519"<br> "assign_ipv6_address_on_creation" = false<br> ...<br> <all attributes of subnet: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/subnet#attributes-reference><br> }<br> "us-east-1b" = {...)<br>}</pre> |
222225
| <a name="output_transit_gateway_attachment_id"></a> [transit\_gateway\_attachment\_id](#output\_transit\_gateway\_attachment\_id) | Transit gateway attachment id. |
223226
| <a name="output_vpc_attributes"></a> [vpc\_attributes](#output\_vpc\_attributes) | VPC resource attributes. Full output of aws\_vpc. |

outputs.tf

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,24 @@ output "nat_gateway_attributes_by_az" {
151151
EOF
152152
}
153153

154+
## DEPRECATED OUTPUTS
155+
156+
output "subnets" {
157+
description = "DEPRECATED OUTPUT: this output has been renamed to `subnet_cidrs_by_type_by_az`. Please transition to that output and see it for a proper description."
158+
value = module.calculate_subnets.subnets_by_type
159+
}
160+
161+
output "route_table_by_subnet_type" {
162+
description = "DEPRECATED OUTPUT: this output has been renamed to `route_table_attributes_by_type_by_az`. Please transition to that output and see it for a proper description."
163+
value = {
164+
# TODO: omit keys if value is null
165+
"private" = awscc_ec2_route_table.private,
166+
"public" = awscc_ec2_route_table.public
167+
"transit_gateway" = awscc_ec2_route_table.tgw
168+
}
169+
}
170+
171+
output "nat_gateways_by_az" {
172+
description = "DEPRECATED OUTPUT: this output has been renamed to `nat_gateway_attributes_by_az`. Please transition to that output and see it for a proper description."
173+
value = try(aws_nat_gateway.main, null)
174+
}

0 commit comments

Comments
 (0)