{"id":16164018,"url":"https://github.com/cyclenerd/terraform-google-quota-limits","last_synced_at":"2026-04-09T14:04:08.856Z","repository":{"id":157547291,"uuid":"629165086","full_name":"Cyclenerd/terraform-google-quota-limits","owner":"Cyclenerd","description":"🌪️ Terraform module to update Google Cloud consumer quota limits","archived":false,"fork":false,"pushed_at":"2025-03-15T08:26:41.000Z","size":763,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T09:26:35.473Z","etag":null,"topics":["gcp","gcp-terraform-module","google-cloud","google-cloud-platform","quotas","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/Cyclenerd/quota-limits/google/latest","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cyclenerd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"Cyclenerd"}},"created_at":"2023-04-17T18:58:23.000Z","updated_at":"2025-03-15T08:26:44.000Z","dependencies_parsed_at":"2023-12-22T13:36:11.052Z","dependency_job_id":"a9652b07-5f81-4942-a4ad-debf2dd530a7","html_url":"https://github.com/Cyclenerd/terraform-google-quota-limits","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyclenerd%2Fterraform-google-quota-limits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyclenerd%2Fterraform-google-quota-limits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyclenerd%2Fterraform-google-quota-limits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyclenerd%2Fterraform-google-quota-limits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cyclenerd","download_url":"https://codeload.github.com/Cyclenerd/terraform-google-quota-limits/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955097,"owners_count":20374368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gcp","gcp-terraform-module","google-cloud","google-cloud-platform","quotas","terraform","terraform-module"],"created_at":"2024-10-10T02:44:59.565Z","updated_at":"2026-04-09T14:04:08.847Z","avatar_url":"https://github.com/Cyclenerd.png","language":"HCL","funding_links":["https://github.com/sponsors/Cyclenerd"],"categories":[],"sub_categories":[],"readme":"# Update Google Cloud Consumer Quota Limits\n\n[![Badge: Google Cloud](https://img.shields.io/badge/Google%20Cloud-%234285F4.svg?logo=google-cloud\u0026logoColor=white)](https://github.com/Cyclenerd/terraform-google-quota-limits#readme)\n[![Badge: Terraform](https://img.shields.io/badge/Terraform-%235835CC.svg?logo=terraform\u0026logoColor=white)](https://github.com/Cyclenerd/terraform-google-quota-limits#readme)\n[![Badge: CI](https://github.com/Cyclenerd/terraform-google-quota-limits/actions/workflows/ci.yml/badge.svg)](https://github.com/Cyclenerd/terraform-google-quota-limits/actions/workflows/ci.yml)\n[![Badge: GitHub](https://img.shields.io/github/license/cyclenerd/terraform-google-quota-limits)](https://github.com/Cyclenerd/google-cloud-pricing-cost-calculator/blob/master/LICENSE)\n\nOverride consumer quota limits for Google Cloud Platform projects.\nIdeal to limit the use of expensive CPUs and GPUs.\n\n[![Screenshot: C3 CPU Quotas](https://raw.githubusercontent.com/Cyclenerd/terraform-google-quota-limits/master/img/quotas_c3_cpus.png)](https://github.com/Cyclenerd/terraform-google-quota-limits#readme)\n\n\u003e **Warning**\n\u003e This module cannot be used to grant more quota than would be allowed by admin overrides, producer overrides, or the default limit of the service.\n\n\u003e **Note**\n\u003e You can also limit Compute Engine resources with custom constraints.\n\u003e More details can be found in the [Google Cloud documentation](https://cloud.google.com/compute/docs/access/custom-constraints).\n\n## Example\n\n1. All [default metrics](https://github.com/Cyclenerd/terraform-google-quota-limits#input_metrics) (input `metrics`) in all [default regions](https://github.com/Cyclenerd/terraform-google-quota-limits#input_regions) (input `regions`) are set to `0`.\n1. In region `europe-west4`,\n  * four (`4`) [N1 and E2 CPUs](https://gcloud-compute.com/instances.html) (metric `compute.googleapis.com/cpus`) and\n  * four (`4`) [C3 CPUs](https://gcloud-compute.com/instances.html) (metric `compute.googleapis.com/c3_cpus`) are allowed.\n\n```hcl\nmodule \"quota-limits\" {\n  source     = \"Cyclenerd/quota-limits/google\"\n  version    = \"~\u003e 1.0.0\"\n  project_id = \"your-project-id\"\n  limits     = {\n    \"europe-west4\" = {\n      \"compute.googleapis.com/cpus\"    = \"4\" # N1, E2\n      \"compute.googleapis.com/c3_cpus\" = \"4\" # C3\n    }\n  }\n}\n```\n\n👉 **[More examples](https://github.com/Cyclenerd/terraform-google-quota-limits/tree/master/examples)**\n\n## Quotas\n\nLists (CSV) with service quota metrics for a consumer:\n\n* [Compute Engine `compute.googleapis.com`](https://github.com/Cyclenerd/terraform-google-quota-limits/blob/master/tools/compute.csv)\n* [Cloud Storage `storage.googleapis.com`](https://github.com/Cyclenerd/terraform-google-quota-limits/blob/master/tools/storage.csv)\n* [BigQuery `bigquery.googleapis.com`](https://github.com/Cyclenerd/terraform-google-quota-limits/blob/master/tools/bigquery.csv)\n\n\u003c!-- BEGIN_TF_DOCS --\u003e\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_google-beta\"\u003e\u003c/a\u003e [google-beta](#provider\\_google-beta) | \u003e= 4.61.0 |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_limits\"\u003e\u003c/a\u003e [limits](#input\\_limits) | The qutoa limits per metric and region to be limited and set to the given value | `map(map(number))` | `{}` | no |\n| \u003ca name=\"input_metrics\"\u003e\u003c/a\u003e [metrics](#input\\_metrics) | The metrics that should be limited and set to 0 | `list(string)` | \u003cpre\u003e[\u003cbr/\u003e  \"compute.googleapis.com/a2_cpus\",\u003cbr/\u003e  \"compute.googleapis.com/c2_cpus\",\u003cbr/\u003e  \"compute.googleapis.com/c2d_cpus\",\u003cbr/\u003e  \"compute.googleapis.com/c3_cpus\",\u003cbr/\u003e  \"compute.googleapis.com/cpus\",\u003cbr/\u003e  \"compute.googleapis.com/m1_cpus\",\u003cbr/\u003e  \"compute.googleapis.com/m2_cpus\",\u003cbr/\u003e  \"compute.googleapis.com/m3_cpus\",\u003cbr/\u003e  \"compute.googleapis.com/n2_cpus\",\u003cbr/\u003e  \"compute.googleapis.com/n2d_cpus\",\u003cbr/\u003e  \"compute.googleapis.com/nvidia_a100_80gb_gpus\",\u003cbr/\u003e  \"compute.googleapis.com/nvidia_a100_gpus\",\u003cbr/\u003e  \"compute.googleapis.com/nvidia_k80_gpus\",\u003cbr/\u003e  \"compute.googleapis.com/nvidia_l4_gpus\",\u003cbr/\u003e  \"compute.googleapis.com/nvidia_l4_vws_gpus\",\u003cbr/\u003e  \"compute.googleapis.com/nvidia_p100_gpus\",\u003cbr/\u003e  \"compute.googleapis.com/nvidia_p100_vws_gpus\",\u003cbr/\u003e  \"compute.googleapis.com/nvidia_p4_gpus\",\u003cbr/\u003e  \"compute.googleapis.com/nvidia_p4_vws_gpus\",\u003cbr/\u003e  \"compute.googleapis.com/nvidia_rtx_pro_6000_vws_gpus\",\u003cbr/\u003e  \"compute.googleapis.com/nvidia_t4_gpus\",\u003cbr/\u003e  \"compute.googleapis.com/nvidia_t4_vws_gpus\",\u003cbr/\u003e  \"compute.googleapis.com/nvidia_v100_gpus\",\u003cbr/\u003e  \"compute.googleapis.com/t2a_cpus\",\u003cbr/\u003e  \"compute.googleapis.com/t2d_cpus\"\u003cbr/\u003e]\u003c/pre\u003e | no |\n| \u003ca name=\"input_project_id\"\u003e\u003c/a\u003e [project\\_id](#input\\_project\\_id) | The project ID that should be limited | `string` | n/a | yes |\n| \u003ca name=\"input_regions\"\u003e\u003c/a\u003e [regions](#input\\_regions) | Google Cloud regions that should be limited | `list(string)` | \u003cpre\u003e[\u003cbr/\u003e  \"africa-south1\",\u003cbr/\u003e  \"asia-east1\",\u003cbr/\u003e  \"asia-east2\",\u003cbr/\u003e  \"asia-northeast1\",\u003cbr/\u003e  \"asia-northeast2\",\u003cbr/\u003e  \"asia-northeast3\",\u003cbr/\u003e  \"asia-south1\",\u003cbr/\u003e  \"asia-south2\",\u003cbr/\u003e  \"asia-southeast1\",\u003cbr/\u003e  \"asia-southeast2\",\u003cbr/\u003e  \"australia-southeast1\",\u003cbr/\u003e  \"australia-southeast2\",\u003cbr/\u003e  \"europe-central2\",\u003cbr/\u003e  \"europe-north1\",\u003cbr/\u003e  \"europe-north2\",\u003cbr/\u003e  \"europe-southwest1\",\u003cbr/\u003e  \"europe-west1\",\u003cbr/\u003e  \"europe-west10\",\u003cbr/\u003e  \"europe-west12\",\u003cbr/\u003e  \"europe-west2\",\u003cbr/\u003e  \"europe-west3\",\u003cbr/\u003e  \"europe-west4\",\u003cbr/\u003e  \"europe-west6\",\u003cbr/\u003e  \"europe-west8\",\u003cbr/\u003e  \"europe-west9\",\u003cbr/\u003e  \"me-central1\",\u003cbr/\u003e  \"me-central2\",\u003cbr/\u003e  \"me-west1\",\u003cbr/\u003e  \"northamerica-northeast1\",\u003cbr/\u003e  \"northamerica-northeast2\",\u003cbr/\u003e  \"northamerica-south1\",\u003cbr/\u003e  \"southamerica-east1\",\u003cbr/\u003e  \"southamerica-west1\",\u003cbr/\u003e  \"us-central1\",\u003cbr/\u003e  \"us-east1\",\u003cbr/\u003e  \"us-east4\",\u003cbr/\u003e  \"us-east5\",\u003cbr/\u003e  \"us-south1\",\u003cbr/\u003e  \"us-west1\",\u003cbr/\u003e  \"us-west2\",\u003cbr/\u003e  \"us-west3\",\u003cbr/\u003e  \"us-west4\"\u003cbr/\u003e]\u003c/pre\u003e | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_limits\"\u003e\u003c/a\u003e [limits](#output\\_limits) | Quota limits per metric and region |\n| \u003ca name=\"output_metrics\"\u003e\u003c/a\u003e [metrics](#output\\_metrics) | The metrics that are limited |\n| \u003ca name=\"output_quotas\"\u003e\u003c/a\u003e [quotas](#output\\_quotas) | The quotas per metric and region that are limited |\n| \u003ca name=\"output_regions\"\u003e\u003c/a\u003e [regions](#output\\_regions) | The regions that are limited |\n\u003c!-- END_TF_DOCS --\u003e\n\n## License\n\nAll files in this repository are under the [Apache License, Version 2.0](LICENSE) unless noted otherwise.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyclenerd%2Fterraform-google-quota-limits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyclenerd%2Fterraform-google-quota-limits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyclenerd%2Fterraform-google-quota-limits/lists"}