repository
akur8-oss/repository/github
Terraform Module for managing Github Repositories and default settings.
terraform-github-repository This module is used to create Github repositories with default settings. Usage Use the module ``hcl module "repo" { source = "./" name = "my-repo" } ` Requirements | Name | Version | |------|---------| | terraform | ~> 1.0 | | github | ~> 4.0 | Providers | Name | Version | |------|---------| | github | ~> 4.0 | Resources | Name | Type | |------|------| | github_branch.default | resource | | github_branch_default.this | resource | | github_repository.this | resource | | github_team.maintain | resource | | github_team.read | resource | | github_team.write | resource | | github_team_repository.maintain | resource | | github_team_repository.read | resource | | github_team_repository.write | resource | | github_team.maintain | data source | | github_team.read | data
| Name | Type | Description | Default |
|---|---|---|---|
| gitignore_template | string | Use the name of the template without the extension. For example, `Haskell`. | required |
| homepage_url | string | URL of a page describing the project. | required |
| license_template | string | Use the name of the template without the extension. For example, `mit` or `mpl-2 | required |
| template | string | Name of the template to use to create the repository (formed as 'owner/repositor | required |
| name | string | (Required) The name of the repository. | required |
| description | string | A description of the repository. | required |
| has_projects | bool | Set to `true` to enable the GitHub Projects features on the repository. Per the | false |
| has_wiki | bool | Set to `true` to enable the GitHub Wiki features on the repository. | false |
| teams_read | list(string) | Slugs of the teams that will be granted the 'pull' privilege. If null, a team wi | [] |
| archive_on_destroy | bool | Set to false to delete the repository instead of archiving on destroy. | true |
| auto_init | bool | Set to `false` to prevent producing an initial commit in the repository. | true |
| allow_squash_merge | bool | Set to `false` to disable squash merges on the repository. | true |
| default_branch | string | The name of the repository branch. | "main" |
| topics | list(string) | The list of topics of the repository. | [] |
| vulnerability_alerts | bool | Set to true to enable security alerts for vulnerable dependencies. Enabling requ | true |
| allow_rebase_merge | bool | Set to `true` to disable rebase merges on the repository. | false |
| has_downloads | bool | Set to `true` to enable the (deprecated) downloads features on the repository. | false |
| teams_maintain | list(string) | Slugs of the teams that will be granted the 'maintain' privilege. If null, a tea | [] |
| teams_write | list(string) | Slugs of the teams that will be granted the 'write' privilege. If null, a team w | [] |
| allow_merge_commit | bool | Set to `true` to enable merge commits on the repository. | false |
| delete_branch_on_merge | bool | Automatically delete head branch after a pull request is merged. Defaults to tru | true |
| has_issues | bool | Set to `true` to enable the GitHub Issues features on the repository. | false |
| is_template | bool | Set to `true` to tell GitHub that this is a template repository. | false |
| visibility | string | Can be public or private. If your organization is associated with an enterprise | "private" |
| allow_auto_merge | bool | Set to `true` to allow auto-merging pull requests on the repository. | false |
| archived | bool | Specifies if the repository should be archived. Defaults to false. NOTE Currentl | false |
http_clone_url — URL that can be provided to git clone to clone the repository via HTTPS.git_clone_url — URL that can be provided to git clone to clone the repository anonymously via the git protocol.html_url — URL to the repository on the web.full_name — A string of the form 'orgname/reponame'.ssh_clone_url — URL that can be provided to git clone to clone the repository via SSH.Terraform Module to define a consistent naming convention by (namespace, stage,
Terraform module that provision an S3 bucket to store the terraform.tfstate file
Terraform Module that defines a VPC with public/private subnets across multiple
Terraform module to provision an AWS Elastic Beanstalk Environment