Skip to content

sous-chefs/terraform-github-repository

Repository files navigation

terraform-github-repository

Repository management for the Sous-Chefs GitHub organisation.

Usage

To create a new repository add it to the list of repository objects inside terraform.tfvars.json

There are 4 repository types we have:

  • cookbook
  • ide
  • terraform
  • other

These repository objects have a number of properties available which can be used:

property description repo_types used by
name the name of the repo all
repo_type the type of repository as per above list all
supermarket_name_override If the supermarket name of the cookbook is not the same as the repo name cookbook
description_override Used to override the description. ide, terraform, other
additional_topics Used to add additional topics to the repo all
additional_status_checks Used to add additional required status checks to the repo all
projects_enabled Used to enable projects on the repo all

Importing a Repo (Board only)

Note: Board Members only Add repository to terraform.tfvars.json import the state file using:

terraform import module.repository[\"bot-trainer\"].github_repository.this bot-trainer
terraform import module.repository[\"bot-trainer\"].github_branch.default bot-trainer:main
terraform import module.repository[\"bot-trainer\"].github_branch_protection.default bot-trainer:main

About

Configuration repository for the terraform-github-repository terraform code

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published