diff options
| author | Franck Cuny <franck@fcuny.net> | 2023-01-03 17:52:31 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2023-01-03 17:52:31 -0800 |
| commit | bf2ca4d56f3a9b5bd369d757f8fc63598274e53a (patch) | |
| tree | 7bff5cd13b02669fadb76f780c3e48c17b8629b7 /ops/github/main.tf | |
| parent | feat: script to delete repositories on GitHub (diff) | |
| download | infra-bf2ca4d56f3a9b5bd369d757f8fc63598274e53a.tar.gz | |
ref: delete terraform configuration for GitHub
I'm not using GitHub for my repositories, and I don't need to maintain
this configuration either.
Diffstat (limited to 'ops/github/main.tf')
| -rw-r--r-- | ops/github/main.tf | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/ops/github/main.tf b/ops/github/main.tf deleted file mode 100644 index 91f58cb..0000000 --- a/ops/github/main.tf +++ /dev/null @@ -1,47 +0,0 @@ -locals { - terraform_service_account = "terraform@fcuny-homelab.iam.gserviceaccount.com" -} - -provider "google" { - alias = "impersonation" - scopes = [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/userinfo.email", - ] -} - -data "google_service_account_access_token" "default" { - provider = google.impersonation - target_service_account = local.terraform_service_account - scopes = ["userinfo-email", "cloud-platform"] - lifetime = "1200s" -} - -provider "google" { - project = "fcuny-homelab" - region = "us-west1" - zone = "us-west1-c" - access_token = data.google_service_account_access_token.default.access_token - request_timeout = "60s" -} - -terraform { - required_providers { - github = { - source = "integrations/github" - version = "~> 4.0" - } - } - - backend "gcs" { - bucket = "world-tf-state" - prefix = "github/state" - impersonate_service_account = "terraform@fcuny-homelab.iam.gserviceaccount.com" - } -} - -# Configure the GitHub Provider. The environment variable -# `GITHUB_TOKEN` needs to be set. -provider "github" { - owner = "fcuny" -} |
