O'Reilly logo

Infrastructure as Code (IAC) Cookbook by Pierre Pomes, Stephane Jourdan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing GitHub with Terraform

There're many service providers to use with Terraform. GitHub is one of them, and we'll see how to manage members of an organization, various teams, and control repository access, right from our infrastructure code. That way, we have an automatic history log of who accesses what.

Getting ready

To step through this recipe, you will need the following:

  • A working Terraform installation
  • A GitHub account (with an API token)
  • An Internet connection

How to do it…

We want to manage a GitHub organization named ACME. Here are the users and their groups:

GitHub username

GitHub team name

Membership level

Team privacy

John

Documentation

member

closed

Jane

Engineering

admin

secret

Here's the policy we decided concerning the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required