back
terraform {
required_providers {
github = ">= 4.6.0"
}
}
top
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
variable "organization" {
description = "(optional)"
type = string
default = null
}
variable "username" {
description = "(required)"
type = string
}
top
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
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