Skip to content

Create a new GitHub repository

GitHub is used to host the Terraform code for your infrastructure.

Naming convention

A good naming convention is to use the name of your team along with -iac, for example barnehageplass-iac.

Give Team Kjøremiljø read access to your repository

To better help out your team in case of need, Team Kjøremiljø would like read access to your infrastructure repository. This can be achieved two ways: By setting the privacy of the repository to "Internal", or by granting read access for the repository to the kjoremiljo team in GitHub.

Create a new empty repository for your team (see how to create a new repository).

Checkout the repository locally on your machine (see how to clone a repository).

Initialize with a .gitignore file to avoid checking in Terraform cache files etc:

.gitignore
.DS_Store

**/.terraform/*
**.tfstate
*.tfstate.*