You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The terraform resource google_service_usage_consumer_quota_override provides a dimensions map argument that allows configuring the quota to a subset of the available dimensions (for example, specific regions)
The quota manager does not expose this argument, and therefore does not allow setting specific dimentions of a quota override
The terraform resource for service_usage_consumer_quota_override defaults to no-dimension when the dimensions object argument is empty.
variables.tf
variable "consumer_quotas" {
description = "The quotas configuration you want to override for the project."
type = list(object({
service = string,
metric = string,
dimensions = object({}),
limit = string,
value = string,
}))
}
This will break backwards compatibility, unless used together with terraform { experiments = [module_variable_optional_attrs] }
and defined thus -
variable "consumer_quotas" {
description = "The quotas configuration you want to override for the project."
type = list(object({
service = string,
metric = string,
dimensions = optional(object({})),
limit = string,
value = string,
}))
}
However, optional arguments are an experimental feature of terraform which cannot be relied upon as of this moment, so it's a risky move.
The text was updated successfully, but these errors were encountered:
TL;DR
The terraform resource google_service_usage_consumer_quota_override provides a dimensions map argument that allows configuring the quota to a subset of the available dimensions (for example, specific regions)
The quota manager does not expose this argument, and therefore does not allow setting specific dimentions of a quota override
Terraform Resources
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/service_usage_consumer_quota_override
Detailed design
variables.tf
main.tf
Additional information
This will break backwards compatibility, unless used together with
terraform { experiments = [module_variable_optional_attrs] }
and defined thus -
However, optional arguments are an experimental feature of terraform which cannot be relied upon as of this moment, so it's a risky move.
The text was updated successfully, but these errors were encountered: