Google Service Usage Consumer Quota Override
This page shows how to write Terraform for Service Usage Consumer Quota Override and write them securely.
google_service_usage_consumer_quota_override (Terraform)
The Consumer Quota Override in Service Usage can be configured in Terraform with the resource name google_service_usage_consumer_quota_override
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
The following arguments are supported:
override_value
- (Required) The overriding quota limit value. Can be any nonnegative integer, or -1 (unlimited quota).service
- (Required) The service that the metrics belong to, e.g.compute.googleapis.com
.metric
- (Required) The metric that should be limited, e.g.compute.googleapis.com/cpus
.limit
- (Required) The limit on the metric, e.g./project/region
.
dimensions
- (Optional) If this map is nonempty, then this override applies only to specific values for dimensions defined in the limit unit.force
- (Optional) If the new quota would decrease the existing quota by more than 10%, the request is rejected. Ifforce
istrue
, that safety check is ignored.project
- (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with formatprojects/[[project]]/services/[[service]]/consumerQuotaMetrics/[[metric]]/limits/[[limit]]/consumerOverrides/[[name]]
name
- The server-generated name of the quota override.
Explanation in Terraform Registry
A consumer override is applied to the consumer on its own authority to limit its own quota usage. Consumer overrides cannot be used to grant more quota than would be allowed by admin overrides, producer overrides, or the default limit of the service.
Warning: This resource is in beta, and should be used with the terraform-provider-google-beta provider. See Provider Versions for more details on beta resources. To get more information about ConsumerQuotaOverride, see:
- How-to Guides