Skip to content

Commit

Permalink
Merge pull request #2 from nikola-acuris/master
Browse files Browse the repository at this point in the history
Add cluster_id output
  • Loading branch information
marciogoda authored Jul 19, 2021
2 parents 580ccbf + 14db607 commit 0fa55dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,4 @@ resource "aws_rds_cluster_parameter_group" "aurora_cluster_postgres96_parameter_
| cluster_endpoint | The 'writer' endpoint for the cluster |
| reader_endpoint | A read-only endpoint for the Aurora cluster, automatically load-balanced across replicas |
| cluster_arn | ARN of the cluster, useful when defining centralised backup script |

| cluster_id | ID of the cluster, useful to any resources requiring cluster's ID, e.g. rds_cluster_role_association |
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@ output "reader_endpoint" {
// Cluster ARN - can use when defining centralised backup
output "cluster_arn" {
value = "${aws_rds_cluster.default.arn}"
}

// Cluster ID - useful to any resources requiring cluster's ID, e.g. rds_cluster_role_association
output "cluster_id" {
value = "${aws_rds_cluster.default.id}"
}

0 comments on commit 0fa55dc

Please sign in to comment.