back
terraform {
required_providers {
github = ">= 4.6.0"
}
}
top
module "github_branch" {
source = "./modules/github/d/github_branch"
# branch - (required) is a type of string
branch = null
# repository - (required) is a type of string
repository = null
}
top
variable "branch" {
description = "(required)"
type = string
}
variable "repository" {
description = "(required)"
type = string
}
top
data "github_branch" "this" {
# branch - (required) is a type of string
branch = var.branch
# repository - (required) is a type of string
repository = var.repository
}
top
output "etag" {
description = "returns a string"
value = data.github_branch.this.etag
}
output "id" {
description = "returns a string"
value = data.github_branch.this.id
}
output "ref" {
description = "returns a string"
value = data.github_branch.this.ref
}
output "sha" {
description = "returns a string"
value = data.github_branch.this.sha
}
output "this" {
value = github_branch.this
}
top