Skip to content

Commit

Permalink
Add Output Of Subnet ARNs (#242)
Browse files Browse the repository at this point in the history
* Add Output Of Subnet ARNs

Facilitates resource access manager, subnet sharing across accounts

* Update Readme For Subnet ARN Output
  • Loading branch information
blaines authored and antonbabenko committed Apr 25, 2019
1 parent c2734e4 commit 215217f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ Terraform version 0.10.3 or newer is required for this module to work.
| database\_route\_table\_ids | List of IDs of database route tables |
| database\_subnet\_group | ID of database subnet group |
| database\_subnets | List of IDs of database subnets |
| database\_subnet\_arns | List of ARNs of database subnets |
| database\_subnets\_cidr\_blocks | List of cidr_blocks of database subnets |
| default\_network\_acl\_id | The ID of the default network ACL |
| default\_route\_table\_id | The ID of the default route table |
Expand All @@ -365,27 +366,32 @@ Terraform version 0.10.3 or newer is required for this module to work.
| elasticache\_subnet\_group | ID of elasticache subnet group |
| elasticache\_subnet\_group\_name | Name of elasticache subnet group |
| elasticache\_subnets | List of IDs of elasticache subnets |
| elasticache\_subnet\_arns | List of ARNs of elasticache subnets |
| elasticache\_subnets\_cidr\_blocks | List of cidr_blocks of elasticache subnets |
| igw\_id | The ID of the Internet Gateway |
| intra\_network\_acl\_id | ID of the intra network ACL |
| intra\_route\_table\_ids | List of IDs of intra route tables |
| intra\_subnets | List of IDs of intra subnets |
| intra\_subnet\_arns | List of ARNs of intra subnets |
| intra\_subnets\_cidr\_blocks | List of cidr_blocks of intra subnets |
| nat\_ids | List of allocation ID of Elastic IPs created for AWS NAT Gateway |
| nat\_public\_ips | List of public Elastic IPs created for AWS NAT Gateway |
| natgw\_ids | List of NAT Gateway IDs |
| private\_network\_acl\_id | ID of the private network ACL |
| private\_route\_table\_ids | List of IDs of private route tables |
| private\_subnets | List of IDs of private subnets |
| private\_subnet\_arns | List of ARNs of private subnets |
| private\_subnets\_cidr\_blocks | List of cidr_blocks of private subnets |
| public\_network\_acl\_id | ID of the public network ACL |
| public\_route\_table\_ids | List of IDs of public route tables |
| public\_subnets | List of IDs of public subnets |
| public\_subnet\_arns | List of ARNs of public subnets |
| public\_subnets\_cidr\_blocks | List of cidr_blocks of public subnets |
| redshift\_network\_acl\_id | ID of the redshift network ACL |
| redshift\_route\_table\_ids | List of IDs of redshift route tables |
| redshift\_subnet\_group | ID of redshift subnet group |
| redshift\_subnets | List of IDs of redshift subnets |
| redshift\_subnet\_arns | List of ARNs of redshift subnets |
| redshift\_subnets\_cidr\_blocks | List of cidr_blocks of redshift subnets |
| vgw\_id | The ID of the VPN Gateway |
| vpc\_arn | The ARN of the VPC |
Expand Down
30 changes: 30 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ output "private_subnets" {
value = ["${aws_subnet.private.*.id}"]
}

output "private_subnet_arns" {
description = "List of ARNs of private subnets"
value = ["${aws_subnet.private.*.arn}"]
}

output "private_subnets_cidr_blocks" {
description = "List of cidr_blocks of private subnets"
value = ["${aws_subnet.private.*.cidr_block}"]
Expand All @@ -83,6 +88,11 @@ output "public_subnets" {
value = ["${aws_subnet.public.*.id}"]
}

output "public_subnet_arns" {
description = "List of ARNs of public subnets"
value = ["${aws_subnet.public.*.arn}"]
}

output "public_subnets_cidr_blocks" {
description = "List of cidr_blocks of public subnets"
value = ["${aws_subnet.public.*.cidr_block}"]
Expand All @@ -93,6 +103,11 @@ output "database_subnets" {
value = ["${aws_subnet.database.*.id}"]
}

output "database_subnet_arns" {
description = "List of ARNs of database subnets"
value = ["${aws_subnet.database.*.arn}"]
}

output "database_subnets_cidr_blocks" {
description = "List of cidr_blocks of database subnets"
value = ["${aws_subnet.database.*.cidr_block}"]
Expand All @@ -108,6 +123,11 @@ output "redshift_subnets" {
value = ["${aws_subnet.redshift.*.id}"]
}

output "redshift_subnet_arns" {
description = "List of ARNs of redshift subnets"
value = ["${aws_subnet.redshift.*.arn}"]
}

output "redshift_subnets_cidr_blocks" {
description = "List of cidr_blocks of redshift subnets"
value = ["${aws_subnet.redshift.*.cidr_block}"]
Expand All @@ -123,6 +143,11 @@ output "elasticache_subnets" {
value = ["${aws_subnet.elasticache.*.id}"]
}

output "elasticache_subnet_arns" {
description = "List of ARNs of elasticache subnets"
value = ["${aws_subnet.elasticache.*.arn}"]
}

output "elasticache_subnets_cidr_blocks" {
description = "List of cidr_blocks of elasticache subnets"
value = ["${aws_subnet.elasticache.*.cidr_block}"]
Expand All @@ -133,6 +158,11 @@ output "intra_subnets" {
value = ["${aws_subnet.intra.*.id}"]
}

output "intra_subnet_arns" {
description = "List of ARNs of intra subnets"
value = ["${aws_subnet.intra.*.arn}"]
}

output "intra_subnets_cidr_blocks" {
description = "List of cidr_blocks of intra subnets"
value = ["${aws_subnet.intra.*.cidr_block}"]
Expand Down

0 comments on commit 215217f

Please sign in to comment.