Skip to content

Latest commit

 

History

History
96 lines (73 loc) · 1.53 KB

github_team_repository.md

File metadata and controls

96 lines (73 loc) · 1.53 KB

github_team_repository

back

Index

Terraform

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

top

Example Usage

module "github_team_repository" {
  source = "./modules/github/r/github_team_repository"

  # permission - (optional) is a type of string
  permission = null
  # repository - (required) is a type of string
  repository = null
  # team_id - (required) is a type of string
  team_id = null
}

top

Variables

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

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

variable "team_id" {
  description = "(required) - ID or slug of team"
  type        = string
}

top

Resource

resource "github_team_repository" "this" {
  # permission - (optional) is a type of string
  permission = var.permission
  # repository - (required) is a type of string
  repository = var.repository
  # team_id - (required) is a type of string
  team_id = var.team_id
}

top

Outputs

output "etag" {
  description = "returns a string"
  value       = github_team_repository.this.etag
}

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

output "this" {
  value = github_team_repository.this
}

top