repository
devdynamicio/repository/github
Terraform module to create an GitHub repositories πΊπ¦
GitHub Repositories Terraform module Terraform Module for managing GitHub Repositories and associated resources.  Requirements This module requires Terraform version 0.13.0 or newer. Dependencies This module depends on a correctly configured GitHub Provider in your Terraform codebase. Usage Add the module to your Terraform resources like so: ``hcl module "repository" { source = "devdynamicio/repository/github" version = "1.0.0" } ` Additional usage examples are available in the examples. Requirements | Name | Version | |------|---------| | terraform | >= 0.13.0 | | github | >= 4.23.0 | Providers | Name | Version | |------|---------| | github | >= 4.23.0 | Modules No modules. Resources | Name | Type | |---
| Name | Type | Description | Default |
|---|---|---|---|
| has_wiki | bool | Toggle to enable GitHub Wiki for the Repository | true |
| is_template | bool | Toggle to enable Template use for the Repository | false |
| has_downloads | bool | Toggle to enable (deprecated) GitHub Downloads for the Repository | false |
| license_template | string | Identifier to use for initial `LICENSE` file for the Repository | "" |
| default_branch | string | Name of the Default Branch of the Repository | "main" |
| visibility | string | Toggle to create a Private Repository | "private" |
| has_projects | bool | Toggle to enable GitHub Projects for the Repository | false |
| archive_on_destroy | bool | Toggle to archive the Repository on destroy | false |
| name | string | Name of the Repository | "" |
| allow_rebase_merge | bool | Toggle to enable Rebase Merges for the Repository | true |
| allow_merge_commit | bool | Toggle to enable Merge Commits for the Repository | true |
| auto_init | bool | Toggle to create an initial commit in the Repository | false |
| gitignore_template | string | Template to use for initial `.gitignore` file for the Repository | "" |
| archived | bool | Toggle to archive the Repository (see notes in `README.md`) | false |
| template | map(string) | Template Repository to use when creating the Repository | {} |
| vulnerability_alerts | bool | Toggle to enable Vulnerability Alerts for the Repository | true |
| description | string | Description of the Repository | "" |
| homepage_url | string | URL of a page describing the Repository | "" |
| delete_branch_on_merge | bool | Toggle to automatically delete merged Branches for the Repository | false |
| pages | map(any) | Configuration block for GitHub Pages | {} |
repo_id β ID of the Repositorysvn_url β URL to check out the repository via GitHub's Subversion protocol emulationnode_id β Node ID of the Repositoryname β A string of the form "reponame"full_name β A string of the form "orgname/reponame"html_url β URL to the repository on the webssh_clone_url β URL to the repository to clone via SSHhttp_clone_url β URL to clone the repository via HTTPsgit_clone_url β URL to clone the repository via the git protocol