Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1 KB

README.md

File metadata and controls

33 lines (20 loc) · 1 KB

Terraform Github org management

Attribues:

Importing Existing Repo

Usage terraform import <resource-id> <github repo>

So the resource is specified in the terraform template so using the command looks like this:

terraform import module.dapper.github_repository.repo Narochno.Dapper

Note the dapper part in the resource id matches the id to be placed in the terraform template

Usage

Add a GITHUB_TOKEN environment variable

Initialize modules: terraform get (only needed for first time and when adding a new terraform module) Preview changes: terraform plan Commit chagnes: terraform apply

Always commit and push terraform.tfstate files after updating

Let's manage

  • Descriptions
  • Branch protections
  • Webhooks