Skip to content

Latest commit

 

History

History
92 lines (69 loc) · 1.38 KB

github_membership.md

File metadata and controls

92 lines (69 loc) · 1.38 KB

github_membership

back

Index

Terraform

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

top

Example Usage

module "github_membership" {
  source = "./modules/github/d/github_membership"

  # organization - (optional) is a type of string
  organization = null
  # username - (required) is a type of string
  username = null
}

top

Variables

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

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

top

Datasource

data "github_membership" "this" {
  # organization - (optional) is a type of string
  organization = var.organization
  # username - (required) is a type of string
  username = var.username
}

top

Outputs

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

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

output "role" {
  description = "returns a string"
  value       = data.github_membership.this.role
}

output "this" {
  value = github_membership.this
}

top