Nov 12, 2021
Creating and configuring new source code repos can be a tedious process and prone to misconfiguraion. Here are some examples of easy to forget configurations:
One approach to enforce standartization is to handle repo creation and configuration with infrastracture as code. Terraform conveniently has the github provider that empowers us to perform this task fairly easily. Some important constructs to consider during that implementation are:
for_each
to provide dynamic inputsgithub_repository
resource allows us to configure features such as visibility, issues, templates, topics ,etcgithub_issue_label
with for_each
allows us to create not only a set of labels but also a workflow uniformly across all projects that dictates the contribution modelRelated tags: