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.

Review your Terraform file for Google best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

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. If force is true, 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 format projects/[[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:

Frequently asked questions

What is Google Service Usage Consumer Quota Override?

Google Service Usage Consumer Quota Override is a resource for Service Usage of Google Cloud Platform. Settings can be wrote in Terraform.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.