-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.tf
28 lines (23 loc) · 626 Bytes
/
output.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# outputs ####################
output "project_id" {
value = var.project_id
}
output "cluster_id" {
value = mongodbatlas_advanced_cluster.cluster.id
}
output "cluster_connection_strings" {
value = mongodbatlas_advanced_cluster.cluster.connection_strings
}
output "cluster_name" {
value = mongodbatlas_advanced_cluster.cluster.name
}
output "cluster_cluser_id" {
value = mongodbatlas_advanced_cluster.cluster.cluster_id
}
output "cluster_users" {
value = {for index, u in mongodbatlas_database_user.users : index => {
username: u.username,
password: nonsensitive(u.password),
roles: u.roles
}}
}