Opinionated Terraform modules to manage GitHub
In case of GitHub repository creation it comes with defaults more suitable for our purposes, therefore less verbose and it also creates default branch protection rule for each repository.
Add this to your .tf
file:
module "github_repository_foo" {
source = "[email protected]:xemantic/xemantic-terraform-github.git//repository"
owner = "<<your-github-account-or-organization>>"
repository = "foo"
description = "My foo repo"
}
Check out repository/variables.tf for all the possible parameters.