Skip to content

Commit 215217f

Browse files
blainesantonbabenko
authored andcommitted
Add Output Of Subnet ARNs (#242)
* Add Output Of Subnet ARNs Facilitates resource access manager, subnet sharing across accounts * Update Readme For Subnet ARN Output
1 parent c2734e4 commit 215217f

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ Terraform version 0.10.3 or newer is required for this module to work.
347347
| database\_route\_table\_ids | List of IDs of database route tables |
348348
| database\_subnet\_group | ID of database subnet group |
349349
| database\_subnets | List of IDs of database subnets |
350+
| database\_subnet\_arns | List of ARNs of database subnets |
350351
| database\_subnets\_cidr\_blocks | List of cidr_blocks of database subnets |
351352
| default\_network\_acl\_id | The ID of the default network ACL |
352353
| default\_route\_table\_id | The ID of the default route table |
@@ -365,27 +366,32 @@ Terraform version 0.10.3 or newer is required for this module to work.
365366
| elasticache\_subnet\_group | ID of elasticache subnet group |
366367
| elasticache\_subnet\_group\_name | Name of elasticache subnet group |
367368
| elasticache\_subnets | List of IDs of elasticache subnets |
369+
| elasticache\_subnet\_arns | List of ARNs of elasticache subnets |
368370
| elasticache\_subnets\_cidr\_blocks | List of cidr_blocks of elasticache subnets |
369371
| igw\_id | The ID of the Internet Gateway |
370372
| intra\_network\_acl\_id | ID of the intra network ACL |
371373
| intra\_route\_table\_ids | List of IDs of intra route tables |
372374
| intra\_subnets | List of IDs of intra subnets |
375+
| intra\_subnet\_arns | List of ARNs of intra subnets |
373376
| intra\_subnets\_cidr\_blocks | List of cidr_blocks of intra subnets |
374377
| nat\_ids | List of allocation ID of Elastic IPs created for AWS NAT Gateway |
375378
| nat\_public\_ips | List of public Elastic IPs created for AWS NAT Gateway |
376379
| natgw\_ids | List of NAT Gateway IDs |
377380
| private\_network\_acl\_id | ID of the private network ACL |
378381
| private\_route\_table\_ids | List of IDs of private route tables |
379382
| private\_subnets | List of IDs of private subnets |
383+
| private\_subnet\_arns | List of ARNs of private subnets |
380384
| private\_subnets\_cidr\_blocks | List of cidr_blocks of private subnets |
381385
| public\_network\_acl\_id | ID of the public network ACL |
382386
| public\_route\_table\_ids | List of IDs of public route tables |
383387
| public\_subnets | List of IDs of public subnets |
388+
| public\_subnet\_arns | List of ARNs of public subnets |
384389
| public\_subnets\_cidr\_blocks | List of cidr_blocks of public subnets |
385390
| redshift\_network\_acl\_id | ID of the redshift network ACL |
386391
| redshift\_route\_table\_ids | List of IDs of redshift route tables |
387392
| redshift\_subnet\_group | ID of redshift subnet group |
388393
| redshift\_subnets | List of IDs of redshift subnets |
394+
| redshift\_subnet\_arns | List of ARNs of redshift subnets |
389395
| redshift\_subnets\_cidr\_blocks | List of cidr_blocks of redshift subnets |
390396
| vgw\_id | The ID of the VPN Gateway |
391397
| vpc\_arn | The ARN of the VPC |

outputs.tf

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ output "private_subnets" {
7373
value = ["${aws_subnet.private.*.id}"]
7474
}
7575

76+
output "private_subnet_arns" {
77+
description = "List of ARNs of private subnets"
78+
value = ["${aws_subnet.private.*.arn}"]
79+
}
80+
7681
output "private_subnets_cidr_blocks" {
7782
description = "List of cidr_blocks of private subnets"
7883
value = ["${aws_subnet.private.*.cidr_block}"]
@@ -83,6 +88,11 @@ output "public_subnets" {
8388
value = ["${aws_subnet.public.*.id}"]
8489
}
8590

91+
output "public_subnet_arns" {
92+
description = "List of ARNs of public subnets"
93+
value = ["${aws_subnet.public.*.arn}"]
94+
}
95+
8696
output "public_subnets_cidr_blocks" {
8797
description = "List of cidr_blocks of public subnets"
8898
value = ["${aws_subnet.public.*.cidr_block}"]
@@ -93,6 +103,11 @@ output "database_subnets" {
93103
value = ["${aws_subnet.database.*.id}"]
94104
}
95105

106+
output "database_subnet_arns" {
107+
description = "List of ARNs of database subnets"
108+
value = ["${aws_subnet.database.*.arn}"]
109+
}
110+
96111
output "database_subnets_cidr_blocks" {
97112
description = "List of cidr_blocks of database subnets"
98113
value = ["${aws_subnet.database.*.cidr_block}"]
@@ -108,6 +123,11 @@ output "redshift_subnets" {
108123
value = ["${aws_subnet.redshift.*.id}"]
109124
}
110125

126+
output "redshift_subnet_arns" {
127+
description = "List of ARNs of redshift subnets"
128+
value = ["${aws_subnet.redshift.*.arn}"]
129+
}
130+
111131
output "redshift_subnets_cidr_blocks" {
112132
description = "List of cidr_blocks of redshift subnets"
113133
value = ["${aws_subnet.redshift.*.cidr_block}"]
@@ -123,6 +143,11 @@ output "elasticache_subnets" {
123143
value = ["${aws_subnet.elasticache.*.id}"]
124144
}
125145

146+
output "elasticache_subnet_arns" {
147+
description = "List of ARNs of elasticache subnets"
148+
value = ["${aws_subnet.elasticache.*.arn}"]
149+
}
150+
126151
output "elasticache_subnets_cidr_blocks" {
127152
description = "List of cidr_blocks of elasticache subnets"
128153
value = ["${aws_subnet.elasticache.*.cidr_block}"]
@@ -133,6 +158,11 @@ output "intra_subnets" {
133158
value = ["${aws_subnet.intra.*.id}"]
134159
}
135160

161+
output "intra_subnet_arns" {
162+
description = "List of ARNs of intra subnets"
163+
value = ["${aws_subnet.intra.*.arn}"]
164+
}
165+
136166
output "intra_subnets_cidr_blocks" {
137167
description = "List of cidr_blocks of intra subnets"
138168
value = ["${aws_subnet.intra.*.cidr_block}"]

0 commit comments

Comments
 (0)