back
terraform {
required_providers {
github = ">= 4.6.0"
}
}
top
module "github_collaborators" {
source = "./modules/github/d/github_collaborators"
# affiliation - (optional) is a type of string
affiliation = null
# owner - (required) is a type of string
owner = null
# repository - (required) is a type of string
repository = null
}
top
variable "affiliation" {
description = "(optional)"
type = string
default = null
}
variable "owner" {
description = "(required)"
type = string
}
variable "repository" {
description = "(required)"
type = string
}
top
data "github_collaborators" "this" {
# affiliation - (optional) is a type of string
affiliation = var.affiliation
# owner - (required) is a type of string
owner = var.owner
# repository - (required) is a type of string
repository = var.repository
}
top
output "collaborator" {
description = "returns a list of object"
value = data.github_collaborators.this.collaborator
}
output "id" {
description = "returns a string"
value = data.github_collaborators.this.id
}
output "this" {
value = github_collaborators.this
}
top