back
terraform {
required_providers {
mongodbatlas = ">= 0.8.2"
}
}
top
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
variable "name" {
description = "(required)"
type = string
}
variable "org_id" {
description = "(required)"
type = string
}
variable "usernames" {
description = "(required)"
type = set(string)
}
top
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
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