Skip to content

Latest commit

 

History

History
125 lines (99 loc) · 2.19 KB

github_repository_milestone.md

File metadata and controls

125 lines (99 loc) · 2.19 KB

github_repository_milestone

back

Index

Terraform

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

top

Example Usage

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

  # description - (optional) is a type of string
  description = null
  # due_date - (optional) is a type of string
  due_date = null
  # owner - (required) is a type of string
  owner = null
  # repository - (required) is a type of string
  repository = null
  # state - (optional) is a type of string
  state = null
  # title - (required) is a type of string
  title = null
}

top

Variables

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

variable "due_date" {
  description = "(optional) - in yyyy-mm-dd format"
  type        = string
  default     = null
}

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

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

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

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

top

Resource

resource "github_repository_milestone" "this" {
  # description - (optional) is a type of string
  description = var.description
  # due_date - (optional) is a type of string
  due_date = var.due_date
  # owner - (required) is a type of string
  owner = var.owner
  # repository - (required) is a type of string
  repository = var.repository
  # state - (optional) is a type of string
  state = var.state
  # title - (required) is a type of string
  title = var.title
}

top

Outputs

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

output "number" {
  description = "returns a number"
  value       = github_repository_milestone.this.number
}

output "this" {
  value = github_repository_milestone.this
}

top