Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Administering asgharlabs github org with terraform

License

Notifications You must be signed in to change notification settings

asgharlabs/github-terraform

Repository files navigation

Github-Terraform

This is a repository for people to administer the asgharlabs github organization.

In order to use this you need to export these two variables:

export TF_VAR_github_token=<token>
export TF_VAR_github_organization=asgharlabs

Then run the following in your repository:

git pull https://github.com/asgharlabs/github-terraform.git
terraform init # assuming you have terraform installed
git checkout master
git pull
terraform plan
terraform apply

If you need to import a repository that already exists, here is an example:

terraform import github_repository.asgharlabs-centos7_repository asgharlabs-centos7

The above will update the tfstate file with the needed information.

Github Actions

I started to follow this link so everything can be ran via Github Actions.

About

Administering asgharlabs github org with terraform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages