From 28028e7387359dbdeef95b3731d75578b41bf6d2 Mon Sep 17 00:00:00 2001 From: Martin Beauchamp Date: Fri, 3 Nov 2017 14:57:38 -0400 Subject: [PATCH 1/2] add cidr_block outputs to public and private subnets --- outputs.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/outputs.tf b/outputs.tf index 428a730fe..2a9f4b40d 100644 --- a/outputs.tf +++ b/outputs.tf @@ -25,11 +25,21 @@ 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}"] From 17ac7a9442b5c2bb63067d40c31d9cfee722e42d Mon Sep 17 00:00:00 2001 From: Martin Beauchamp Date: Fri, 3 Nov 2017 16:05:44 -0400 Subject: [PATCH 2/2] add cidr_block outputs to database and elasticache subnets --- outputs.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/outputs.tf b/outputs.tf index 2a9f4b40d..3afde25ec 100644 --- a/outputs.tf +++ b/outputs.tf @@ -45,6 +45,11 @@ output "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}" @@ -55,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}"