Skip to content

Latest commit

 

History

History
105 lines (81 loc) · 1.7 KB

github_repository_deploy_key.md

File metadata and controls

105 lines (81 loc) · 1.7 KB

github_repository_deploy_key

back

Index

Terraform

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

top

Example Usage

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

  # key - (required) is a type of string
  key = null
  # read_only - (optional) is a type of bool
  read_only = null
  # repository - (required) is a type of string
  repository = null
  # title - (required) is a type of string
  title = null
}

top

Variables

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

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

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

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

top

Resource

resource "github_repository_deploy_key" "this" {
  # key - (required) is a type of string
  key = var.key
  # read_only - (optional) is a type of bool
  read_only = var.read_only
  # repository - (required) is a type of string
  repository = var.repository
  # title - (required) is a type of string
  title = var.title
}

top

Outputs

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

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

output "this" {
  value = github_repository_deploy_key.this
}

top