The Terraform GitHub module was developed to automate the creation of repositories on GitHub using Terraform.
Before you begin, you will need the following prerequisites installed:
- Terraform (v1.3.9 or higher)
- GitHub Token with the necessary permissions
module "github_repo" {
source = "github.com/Guerlielton/terraform-github-module"
organization = "devops"
team_name = "devops"
repo_name = ["new-repository"]
repo_description = "Description of the new repository"
}
repo_name
(required): The name of the repository to be created.repo_description
(optional): A description for the repository.organization
(require): The name of the organization on GitHubteam_name
(required): The team name of the organization such as DevOps, DevTeam
repo_url
: The URL of the newly created repository.
If you want to contribute to this project, please follow these steps:
- Fork the project
- Create a branch for your fix or feature (
git checkout -b feature/new-feature
) - Commit your changes (
git commit -m 'Add new feature'
) - Push to the branch (
git push origin feature/new-feature
) - Open a pull request
To report issues or provide suggestions, use the GitHub issues page.
This project is licensed under the MIT License.