Skip to content

Repository files navigation

terraform-github

Terraform code to manage GitHub repositories. Uses Cloudflare R2 as Terraform backend.

How-to

Create a main.tfvars file with the following content:

bucket     = "your-bucket-name"
access_key = "R2 access key for the bucket"
secret_key = "R2 secret key for the bucket"
endpoints  = { s3 = "R2 endpoint for the bucket, without the bucket name (should be https://<account_id>.r2.cloudflarestorage.com)" }

Run terraform init -backend-config=main.tfvars to initialize the Terraform configuration.

Create a terraform.tfvars file with the following content:

github_token = "ghp_your_github_token"

And you're good to go.

About

Terraform configuration for some of my GitHub repositories

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages