Override consumer quota limits for Google Cloud Platform projects. Ideal to limit the use of expensive CPUs and GPUs.
Warning 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.
Note You can also limit Compute Engine resources with custom constraints. More details can be found in the Google Cloud documentation.
- All default metrics (input
metrics
) in all default regions (inputregions
) are set to0
. - In region
europe-west4
,
- four (
4
) N1 and E2 CPUs (metriccompute.googleapis.com/cpus
) and - four (
4
) C3 CPUs (metriccompute.googleapis.com/c3_cpus
) are allowed.
module "quota-limits" {
source = "Cyclenerd/quota-limits/google"
version = "~> 1.0.0"
project_id = "your-project-id"
limits = {
"europe-west4" = {
"compute.googleapis.com/cpus" = "4" # N1, E2
"compute.googleapis.com/c3_cpus" = "4" # C3
}
}
}
Lists (CSV) with service quota metrics for a consumer:
- Compute Engine
compute.googleapis.com
- Cloud Storage
storage.googleapis.com
- BigQuery
bigquery.googleapis.com
Name | Version |
---|---|
google-beta | 4.61.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
limits | The qutoa limits per metric and region to be limited and set to the given value | map(map(number)) |
{} |
no |
metrics | The metrics that should be limited and set to 0 | list(string) |
[ |
no |
project_id | The project ID that should be limited | string |
n/a | yes |
regions | Google Cloud regions that should be limited | list(string) |
[ |
no |
Name | Description |
---|---|
limits | Quota limits per metric and region |
metrics | The metrics that are limited |
quotas | The quotas per metric and region that are limited |
regions | The regions that are limited |
All files in this repository are under the Apache License, Version 2.0 unless noted otherwise.