Skip to content

Latest commit

 

History

History
95 lines (72 loc) · 1.44 KB

mongodbatlas_team.md

File metadata and controls

95 lines (72 loc) · 1.44 KB

mongodbatlas_team

back

Index

Terraform

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

top

Example Usage

module "mongodbatlas_team" {
  source = "./modules/mongodbatlas/r/mongodbatlas_team"

  # name - (required) is a type of string
  name = null
  # org_id - (required) is a type of string
  org_id = null
  # usernames - (required) is a type of set of string
  usernames = []
}

top

Variables

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

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

variable "usernames" {
  description = "(required)"
  type        = set(string)
}

top

Resource

resource "mongodbatlas_team" "this" {
  # name - (required) is a type of string
  name = var.name
  # org_id - (required) is a type of string
  org_id = var.org_id
  # usernames - (required) is a type of set of string
  usernames = var.usernames
}

top

Outputs

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

output "team_id" {
  description = "returns a string"
  value       = mongodbatlas_team.this.team_id
}

output "this" {
  value = mongodbatlas_team.this
}

top