Skip to content

Commit

Permalink
Add cidr_block outputs to public and private subnets (terraform-aws-m…
Browse files Browse the repository at this point in the history
  • Loading branch information
ChairmanTubeAmp authored and lorengordon committed Nov 9, 2017
1 parent 21ff060 commit f3edfe3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,31 @@ output "private_subnets" {
value = ["${aws_subnet.private.*.id}"]
}

output "private_subnets_cidr_blocks" {
description = "List of cidr_blocks of private subnets"
value = ["${aws_subnet.private.*.cidr_block}"]
}

output "public_subnets" {
description = "List of IDs of public subnets"
value = ["${aws_subnet.public.*.id}"]
}

output "public_subnets_cidr_blocks" {
description = "List of cidr_blocks of public subnets"
value = ["${aws_subnet.public.*.cidr_block}"]
}

output "database_subnets" {
description = "List of IDs of database subnets"
value = ["${aws_subnet.database.*.id}"]
}

output "database_subnets_cidr_blocks" {
description = "List of cidr_blocks of database subnets"
value = ["${aws_subnet.database.*.cidr_block}"]
}

output "database_subnet_group" {
description = "ID of database subnet group"
value = "${aws_db_subnet_group.database.id}"
Expand All @@ -45,6 +60,11 @@ output "elasticache_subnets" {
value = ["${aws_subnet.elasticache.*.id}"]
}

output "elasticache_subnets_cidr_blocks" {
description = "List of cidr_blocks of elasticache subnets"
value = ["${aws_subnet.elasticache.*.cidr_block}"]
}

output "elasticache_subnet_group" {
description = "ID of elasticache subnet group"
value = "${aws_elasticache_subnet_group.elasticache.id}"
Expand Down

0 comments on commit f3edfe3

Please sign in to comment.