On macOS:
brew install gh
brew tap hashicorp/tap
brew install hashicorp/tap/terraform
export TF_VAR_GITHUB_TOKEN=<GITHUB_TOKEN>
terraform import "github_repository.terraform-playground" "name-of-github-repository-resource"
You can login in to Terraform on app.terraform.io.
When you configure Terraform Cloud, you must configure use the user interface to configure the sensitive variables defined in variables.tf
.
The following code is responsible for storing the Terraform state in the cloud:
cloud {
organization = "nl-design-system"
workspaces {
name = "github"
}
}
Removing this code should allow you to switch back to storing state in terraform.tfstate
.
github
github_organization
github_user
github_repository
github_branch_protection
github_repository_collaborators
github_team
github_team_members
vercel
vercel_project
github_user
to user.tf
.github_user
as one of the members
to the existing team in team-members.tf
.github_team
in team.tf
.github_team
in team.tf
, with people who should be able to make pull requests. Follow the team name pattern: organization-committer
or organization-repository-committer
. Specify parent_team_id
to extend the organization team.github_team
in team.tf
. Follow the team name pattern: organization-maintainer
. Specify parent_team_id
to extend the committer team.github_user
to user.tf
.github_team_members
for the new team in team-members.tf
, and specify all users as members. Decide which users go into the committer
team, and which users are in the maintainer
team.organization-maintainer
team to the terraform github_repository
in terraform.tf
, so the maintainers are able to make and review Pull Requests.