From 74af6206a0e55f97cdffbe8216366b380cc8b40d Mon Sep 17 00:00:00 2001 From: YannickEvers <112076936+YannickEvers@users.noreply.github.com> Date: Fri, 12 Jul 2024 13:19:02 +0200 Subject: [PATCH] OPS-6673-mongodb-add-output (#31) Add UUID of the cluster to the outputs of the module (needed for managing the users in ansible). --------- Co-authored-by: github-actions[bot] --- modules/ionos-mongodb-cluster/README.md | 1 + modules/ionos-mongodb-cluster/output.tf | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/modules/ionos-mongodb-cluster/README.md b/modules/ionos-mongodb-cluster/README.md index a588cf0..1568db0 100644 --- a/modules/ionos-mongodb-cluster/README.md +++ b/modules/ionos-mongodb-cluster/README.md @@ -38,6 +38,7 @@ | Name | Description | |------|-------------| | [connection\_string](#output\_connection\_string) | The URL pointing to your cluster. | +| [uuid](#output\_uuid) | The UUID of the cluster. | ## Requirements | Name | Version | diff --git a/modules/ionos-mongodb-cluster/output.tf b/modules/ionos-mongodb-cluster/output.tf index 29f83fd..865e462 100644 --- a/modules/ionos-mongodb-cluster/output.tf +++ b/modules/ionos-mongodb-cluster/output.tf @@ -2,3 +2,7 @@ output "connection_string" { description = "The URL pointing to your cluster." value = ionoscloud_mongo_cluster.mongo_cluster.connection_string } +output "uuid" { + description = "The UUID of the cluster." + value = ionoscloud_mongo_cluster.mongo_cluster.id +}