google_cloud_quotas_quota_preference

QuotaPreference represents the preferred quota configuration specified for a project, folder or organization. There is only one QuotaPreference resource for a quota value targeting a unique set of dimensions.

To get more information about QuotaPreference, see:

Example Usage - Cloudquotas Quota Preference Basic

resource "google_cloud_quotas_quota_preference" "preference" {
  parent        = "projects/my-project-name"
  name          = "compute_googleapis_com-CPUS-per-project_us-east1"
  dimensions    = { region = "us-east1" }
  service       = "compute.googleapis.com"
  quota_id      = "CPUS-per-project-region"
  contact_email = "testuser@gmail.com"
  quota_config  {
    preferred_value = 200
  }
}

Argument Reference

The following arguments are supported:

The quota_config block supports:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

QuotaPreference can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import QuotaPreference using one of the formats above. For example:

import {
  id = "{{parent}}/locations/global/quotaPreferences/{{name}}"
  to = google_cloud_quotas_quota_preference.default
}

When using the terraform import command, QuotaPreference can be imported using one of the formats above. For example:

$ terraform import google_cloud_quotas_quota_preference.default {{parent}}/locations/global/quotaPreferences/{{name}}