Meta files for terraform-aws-modules organization
This repository contains Terraform configurations for all Terraform modules managed as part of terraform-aws-modules organization on GitHub.
-
- Repositories (with issue labels)
- Branch protections (status checks, pull-request reviews, restrictions)
- Teams
- Team repositories
- Team memberships
- Organization memberships (admins and members)
-
Common files in GitHub repositories is disabled. Should update to use github_repository_file instead of
githubfile
provider:- .pre-commit-hooks.yml
- .github issues and PR templates
- CODEOWNERS
- Makefile
- GitHub Actions
- LICENSE
- README.md
- ...
It is hard to keep things identical, predictable, and with high-quality, while focusing on maintaining Terraform modules.
GitHub allows to have a special repository named .github where common files like CODE_OF_CONDUCT.md
, CONTRIBUTING.md
, FUNDING.yml
, PULL_REQUEST_TEMPLATE.md
and SECURITY.md
are stored. Those files are automatically used by all repositories across the whole GitHub organization.
Ideally, individual Terraform module repository should contain only Terraform configurations and have standard procedures for releasing, updating, testing, documenting, defined in a central place (this repo).
If you are using Mac, you can install all dependencies using Homebrew:
$ brew install terraform terragrunt terraform-docs pre-commit
GitHub Personal Access Token is stored using SecretHub.io and populated during execution by Terragrunt.
Give SecretHub.io a try if you are tired of struggling with secrets already. Remember to mention that you have read about it here. :)
$ cd github/main
$ terragrunt apply
$ cd github/repositories/terraform-aws-modules/terraform-aws-vpc
$ terragrunt apply
Currently, it is not well implemented still. Due to a large amount of API calls to GitHub and inability of terragrunt to limit execution to a single process.
$ cd github/repositories
$ terragrunt run-all plan # <- it is a good idea to see changes :)
$ terragrunt run-all apply
There is a simple script to run commands in a loop - scripts/update_repo_files.sh
.
- Use SecretHub for storing secret Github Token
- Prevent making changes in files managed by this repo in repositories (tell users during PR checks)
- Finish running code in this repo -
terraform-aws-modules/terraform-aws-eks
- Verify if GitHub is actually using the files in "ISSUE_TEMPLATE" directory from
.github
repository. Verify and update if necessary.
This repository is managed by Anton Babenko.
Apache 2 Licensed. See LICENSE for full details.