Skip to content

Commit 48ff6e6

Browse files
authored
feat: Add routes table association and route attachment outputs (#398)
1 parent b42905b commit 48ff6e6

File tree

4 files changed

+95
-11
lines changed

4 files changed

+95
-11
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
repos:
2-
- repo: git://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.27.0
4-
hooks:
5-
- id: terraform_fmt
6-
- id: terraform_docs
7-
- repo: git://github.com/pre-commit/pre-commit-hooks
8-
rev: v2.5.0
9-
hooks:
10-
- id: check-merge-conflict
2+
- repo: git://github.com/antonbabenko/pre-commit-terraform
3+
rev: v1.30.0
4+
hooks:
5+
- id: terraform_fmt
6+
- id: terraform_docs
7+
- repo: git://github.com/pre-commit/pre-commit-hooks
8+
rev: v3.1.0
9+
hooks:
10+
- id: check-merge-conflict

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,11 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
552552
|------|-------------|
553553
| azs | A list of availability zones specified as argument to this module |
554554
| cgw\_ids | List of IDs of Customer Gateway |
555+
| database\_internet\_gateway\_route\_id | ID of the database internet gateway route. |
556+
| database\_ipv6\_egress\_route\_id | ID of the database IPv6 egress route. |
557+
| database\_nat\_gateway\_route\_ids | List of IDs of the database nat gateway route. |
555558
| database\_network\_acl\_id | ID of the database network ACL |
559+
| database\_route\_table\_association\_ids | List of IDs of the database route table association |
556560
| database\_route\_table\_ids | List of IDs of database route tables |
557561
| database\_subnet\_arns | List of ARNs of database subnets |
558562
| database\_subnet\_group | ID of database subnet group |
@@ -573,6 +577,7 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
573577
| default\_vpc\_main\_route\_table\_id | The ID of the main route table associated with this VPC |
574578
| egress\_only\_internet\_gateway\_id | The ID of the egress only Internet Gateway |
575579
| elasticache\_network\_acl\_id | ID of the elasticache network ACL |
580+
| elasticache\_route\_table\_association\_ids | List of IDs of the elasticache route table association |
576581
| elasticache\_route\_table\_ids | List of IDs of elasticache route tables |
577582
| elasticache\_subnet\_arns | List of ARNs of elasticache subnets |
578583
| elasticache\_subnet\_group | ID of elasticache subnet group |
@@ -582,6 +587,7 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
582587
| elasticache\_subnets\_ipv6\_cidr\_blocks | List of IPv6 cidr\_blocks of elasticache subnets in an IPv6 enabled VPC |
583588
| igw\_id | The ID of the Internet Gateway |
584589
| intra\_network\_acl\_id | ID of the intra network ACL |
590+
| intra\_route\_table\_association\_ids | List of IDs of the intra route table association |
585591
| intra\_route\_table\_ids | List of IDs of intra route tables |
586592
| intra\_subnet\_arns | List of ARNs of intra subnets |
587593
| intra\_subnets | List of IDs of intra subnets |
@@ -591,19 +597,27 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
591597
| nat\_ids | List of allocation ID of Elastic IPs created for AWS NAT Gateway |
592598
| nat\_public\_ips | List of public Elastic IPs created for AWS NAT Gateway |
593599
| natgw\_ids | List of NAT Gateway IDs |
600+
| private\_ipv6\_egress\_route\_ids | List of IDs of the ipv6 egress route. |
601+
| private\_nat\_gateway\_route\_ids | List of IDs of the private nat gateway route. |
594602
| private\_network\_acl\_id | ID of the private network ACL |
603+
| private\_route\_table\_association\_ids | List of IDs of the private route table association |
595604
| private\_route\_table\_ids | List of IDs of private route tables |
596605
| private\_subnet\_arns | List of ARNs of private subnets |
597606
| private\_subnets | List of IDs of private subnets |
598607
| private\_subnets\_cidr\_blocks | List of cidr\_blocks of private subnets |
599608
| private\_subnets\_ipv6\_cidr\_blocks | List of IPv6 cidr\_blocks of private subnets in an IPv6 enabled VPC |
609+
| public\_internet\_gateway\_ipv6\_route\_id | ID of the IPv6 internet gateway route. |
610+
| public\_internet\_gateway\_route\_id | ID of the internet gateway route. |
600611
| public\_network\_acl\_id | ID of the public network ACL |
612+
| public\_route\_table\_association\_ids | List of IDs of the public route table association |
601613
| public\_route\_table\_ids | List of IDs of public route tables |
602614
| public\_subnet\_arns | List of ARNs of public subnets |
603615
| public\_subnets | List of IDs of public subnets |
604616
| public\_subnets\_cidr\_blocks | List of cidr\_blocks of public subnets |
605617
| public\_subnets\_ipv6\_cidr\_blocks | List of IPv6 cidr\_blocks of public subnets in an IPv6 enabled VPC |
606618
| redshift\_network\_acl\_id | ID of the redshift network ACL |
619+
| redshift\_public\_route\_table\_association\_ids | List of IDs of the public redshidt route table association |
620+
| redshift\_route\_table\_association\_ids | List of IDs of the redshift route table association |
607621
| redshift\_route\_table\_ids | List of IDs of redshift route tables |
608622
| redshift\_subnet\_arns | List of ARNs of redshift subnets |
609623
| redshift\_subnet\_group | ID of redshift subnet group |

examples/ipv6/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ No input.
3333

3434
| Name | Description |
3535
|------|-------------|
36-
| ipv6\_association\_id | The IPv6 CIDR block |
37-
| ipv6\_cidr\_block | The association ID for the IPv6 CIDR block |
36+
| ipv6\_association\_id | The association ID for the IPv6 CIDR block |
37+
| ipv6\_cidr\_block | The IPv6 CIDR block |
3838
| vpc\_id | The ID of the VPC |
3939

4040
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

outputs.tf

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,76 @@ output "intra_route_table_ids" {
238238
value = aws_route_table.intra.*.id
239239
}
240240

241+
output "public_internet_gateway_route_id" {
242+
description = "ID of the internet gateway route."
243+
value = concat(aws_route.public_internet_gateway.*.id, [""])[0]
244+
}
245+
246+
output "public_internet_gateway_ipv6_route_id" {
247+
description = "ID of the IPv6 internet gateway route."
248+
value = concat(aws_route.public_internet_gateway_ipv6.*.id, [""])[0]
249+
}
250+
251+
output "database_internet_gateway_route_id" {
252+
description = "ID of the database internet gateway route."
253+
value = concat(aws_route.database_internet_gateway.*.id, [""])[0]
254+
}
255+
256+
output "database_nat_gateway_route_ids" {
257+
description = "List of IDs of the database nat gateway route."
258+
value = aws_route.database_nat_gateway.*.id
259+
}
260+
261+
output "database_ipv6_egress_route_id" {
262+
description = "ID of the database IPv6 egress route."
263+
value = concat(aws_route.database_ipv6_egress.*.id, [""])[0]
264+
}
265+
266+
output "private_nat_gateway_route_ids" {
267+
description = "List of IDs of the private nat gateway route."
268+
value = aws_route.private_nat_gateway.*.id
269+
}
270+
271+
output "private_ipv6_egress_route_ids" {
272+
description = "List of IDs of the ipv6 egress route."
273+
value = aws_route.private_ipv6_egress.*.id
274+
}
275+
276+
output "private_route_table_association_ids" {
277+
description = "List of IDs of the private route table association"
278+
value = aws_route_table_association.private.*.id
279+
}
280+
281+
output "database_route_table_association_ids" {
282+
description = "List of IDs of the database route table association"
283+
value = aws_route_table_association.database.*.id
284+
}
285+
286+
output "redshift_route_table_association_ids" {
287+
description = "List of IDs of the redshift route table association"
288+
value = aws_route_table_association.redshift.*.id
289+
}
290+
291+
output "redshift_public_route_table_association_ids" {
292+
description = "List of IDs of the public redshidt route table association"
293+
value = aws_route_table_association.redshift_public.*.id
294+
}
295+
296+
output "elasticache_route_table_association_ids" {
297+
description = "List of IDs of the elasticache route table association"
298+
value = aws_route_table_association.elasticache.*.id
299+
}
300+
301+
output "intra_route_table_association_ids" {
302+
description = "List of IDs of the intra route table association"
303+
value = aws_route_table_association.intra.*.id
304+
}
305+
306+
output "public_route_table_association_ids" {
307+
description = "List of IDs of the public route table association"
308+
value = aws_route_table_association.public.*.id
309+
}
310+
241311
output "nat_ids" {
242312
description = "List of allocation ID of Elastic IPs created for AWS NAT Gateway"
243313
value = aws_eip.nat.*.id

0 commit comments

Comments
 (0)