Skip to content

Latest commit

 

History

History
96 lines (73 loc) · 1.52 KB

github_collaborators.md

File metadata and controls

96 lines (73 loc) · 1.52 KB

github_collaborators

back

Index

Terraform

terraform {
  required_providers {
    github = ">= 4.6.0"
  }
}

top

Example Usage

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

Variables

variable "affiliation" {
  description = "(optional)"
  type        = string
  default     = null
}

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

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

top

Datasource

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

Outputs

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