back
terraform {
required_providers {
github = ">= 4.6.0"
}
}
top
module "github_team" {
source = "./modules/github/r/github_team"
# create_default_maintainer - (optional) is a type of bool
create_default_maintainer = null
# description - (optional) is a type of string
description = null
# ldap_dn - (optional) is a type of string
ldap_dn = null
# name - (required) is a type of string
name = null
# parent_team_id - (optional) is a type of number
parent_team_id = null
# privacy - (optional) is a type of string
privacy = null
}
top
variable "create_default_maintainer" {
description = "(optional)"
type = bool
default = null
}
variable "description" {
description = "(optional)"
type = string
default = null
}
variable "ldap_dn" {
description = "(optional)"
type = string
default = null
}
variable "name" {
description = "(required)"
type = string
}
variable "parent_team_id" {
description = "(optional)"
type = number
default = null
}
variable "privacy" {
description = "(optional)"
type = string
default = null
}
top
resource "github_team" "this" {
# create_default_maintainer - (optional) is a type of bool
create_default_maintainer = var.create_default_maintainer
# description - (optional) is a type of string
description = var.description
# ldap_dn - (optional) is a type of string
ldap_dn = var.ldap_dn
# name - (required) is a type of string
name = var.name
# parent_team_id - (optional) is a type of number
parent_team_id = var.parent_team_id
# privacy - (optional) is a type of string
privacy = var.privacy
}
top
output "etag" {
description = "returns a string"
value = github_team.this.etag
}
output "id" {
description = "returns a string"
value = github_team.this.id
}
output "members_count" {
description = "returns a number"
value = github_team.this.members_count
}
output "node_id" {
description = "returns a string"
value = github_team.this.node_id
}
output "slug" {
description = "returns a string"
value = github_team.this.slug
}
output "this" {
value = github_team.this
}
top