From bbffb3922271d769309332492de989517b9b0be7 Mon Sep 17 00:00:00 2001 From: Alan Jenkins Date: Wed, 12 Dec 2018 09:56:09 +0000 Subject: [PATCH] Add output for the RDS Cluster ID Adds an output for the RDS Cluster ID. --- README.md | 1 + outputs.tf | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index f8f42f6..32bafb1 100644 --- a/README.md +++ b/README.md @@ -215,5 +215,6 @@ resource "aws_rds_cluster_parameter_group" "aurora_cluster_postgres96_parameter_ |------|-------------| | all_instance_endpoints_list | Comma separated list of all DB instance endpoints running in cluster | | cluster_endpoint | The 'writer' endpoint for the cluster | +| cluster_identifier | The ID of the RDS Cluster | | reader_endpoint | A read-only endpoint for the Aurora cluster, automatically load-balanced across replicas | diff --git a/outputs.tf b/outputs.tf index 96bfba1..7c191cc 100644 --- a/outputs.tf +++ b/outputs.tf @@ -12,3 +12,8 @@ output "all_instance_endpoints_list" { output "reader_endpoint" { value = "${aws_rds_cluster.default.reader_endpoint}" } + +// The ID of the RDS Cluster +output "cluster_identifier" { + value = "${aws_rds_cluster.default.id}" +}