Skip to content

Commit

Permalink
fix: added output cluster_members for resource aws_docdb_cluster (#107)
Browse files Browse the repository at this point in the history
* fix: added output cluster_members for resource aws_docdb_cluster

* fix: added flatten()
  • Loading branch information
Faris96Hub authored Sep 5, 2024
1 parent 6f2e65d commit 7485923
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ output "reader_endpoint" {
description = "A read-only endpoint of the DocumentDB cluster, automatically load-balanced across replicas"
}

output "cluster_members" {
value = flatten(aws_docdb_cluster.default[*].cluster_members)
description = "List of DocumentDB Instances that are a part of this cluster"
}

output "master_host" {
value = module.dns_master.hostname
description = "DB master hostname"
Expand Down

0 comments on commit 7485923

Please sign in to comment.