Terraform code to manage GitHub repositories. Uses Cloudflare R2 as Terraform backend.
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.