Skip to content

Latest commit

 

History

History
77 lines (56 loc) · 1.14 KB

mongodbatlas_database_users.md

File metadata and controls

77 lines (56 loc) · 1.14 KB

mongodbatlas_database_users

back

Index

Terraform

terraform {
  required_providers {
    mongodbatlas = ">= 0.8.2"
  }
}

top

Example Usage

module "mongodbatlas_database_users" {
  source = "./modules/mongodbatlas/d/mongodbatlas_database_users"

  # project_id - (required) is a type of string
  project_id = null
}

top

Variables

variable "project_id" {
  description = "(required)"
  type        = string
}

top

Datasource

data "mongodbatlas_database_users" "this" {
  # project_id - (required) is a type of string
  project_id = var.project_id
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = data.mongodbatlas_database_users.this.id
}

output "results" {
  description = "returns a list of object"
  value       = data.mongodbatlas_database_users.this.results
}

output "this" {
  value = mongodbatlas_database_users.this
}

top