Stay organized with collections
Save and categorize content based on your preferences.
Terraform
is an Infrastructure as code (IaC) tool that you can use to provision resources
and permissions for Cloud Quotas. To learn how to use Terraform
to provision infrastructure on Google Cloud, refer to the
Terraform on Google Cloud documentation.
You can use Terraform to do the following with Cloud Quotas:
Retrieve the QuotaInfo data source of a quota for a project, folder or
organization.
List QuotaInfos data source of all quotas for a given project, folder or
organization.
Create a new, or update an existing, QuotaPreference quota configuration
that specifies the preferred value for a quota.
Before you begin
Before you begin, you need access to Terraform:
If you're getting started, note that Cloud Shell has
Terraform already integrated, and you can follow this step by step
tutorial,
Deploy a basic Flask web server
using Terraform and Cloud Shell.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[[["\u003cp\u003eTerraform, an Infrastructure as Code (IaC) tool, can be used to provision resources and permissions for Cloud Quotas.\u003c/p\u003e\n"],["\u003cp\u003eWith Cloud Quotas, Terraform can retrieve individual \u003ccode\u003eQuotaInfo\u003c/code\u003e data, list all \u003ccode\u003eQuotaInfos\u003c/code\u003e, and create or update \u003ccode\u003eQuotaPreference\u003c/code\u003e configurations.\u003c/p\u003e\n"],["\u003cp\u003eTerraform is readily available within Cloud Shell, or it can be independently installed using the instructions from HashiCorp.\u003c/p\u003e\n"],["\u003cp\u003eCloud Quotas offers Terraform resources such as \u003ccode\u003egoogle_cloud_quotas_quota_preference\u003c/code\u003e and \u003ccode\u003egoogle_cloud_quotas_quota_adjuster_settings\u003c/code\u003e, alongside data sources like \u003ccode\u003egoogle_cloud_quotas_quota_info\u003c/code\u003e and \u003ccode\u003egoogle_cloud_quotas_quota_infos\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Terraform support for Cloud Quotas\n\n[Terraform](https://www.terraform.io/)\nis an Infrastructure as code (IaC) tool that you can use to provision resources\nand permissions for Cloud Quotas. To learn how to use Terraform\nto provision infrastructure on Google Cloud, refer to the\n[Terraform on Google Cloud documentation](/docs/terraform).\n\nYou can use Terraform to do the following with Cloud Quotas:\n\n- Retrieve the `QuotaInfo` data source of a quota for a project, folder or organization.\n- List `QuotaInfos` data source of all quotas for a given project, folder or organization.\n- Create a new, or update an existing, `QuotaPreference` quota configuration that specifies the preferred value for a quota.\n\nBefore you begin\n----------------\n\nBefore you begin, you need access to Terraform:\n\n- If you're getting started, note that [Cloud Shell](/shell/docs) has\n Terraform already integrated, and you can follow this step by step\n tutorial,\n [Deploy a basic Flask web server](/docs/terraform/get-started-with-terraform)\n using Terraform and Cloud Shell.\n\n- If you'd prefer to install Terraform yourself, see HashiCorp's\n [Terraform installation instructions](https://developer.hashicorp.com/terraform/tutorials/gcp-get-started/install-cli).\n\nTo use Terraform with Cloud Quotas,\n[create a configuration file](https://developer.hashicorp.com/terraform/language)\nto describe your infrastructure, and then\n[apply the configuration file](https://developer.hashicorp.com/terraform/cli/commands/apply)\nto create an execution plan and perform operations to provision your\ninfrastructure.\n\nTerraform resources and data sources\n------------------------------------\n\nThe following lists contain links to Cloud Quotas Terraform\nresources and data source samples that appear in the\n[Terraform registry](https://registry.terraform.io/providers/hashicorp/google/latest/docs/).\n\n### Resources\n\nCloud Quotas provides the following Terraform resources:\n\n- [google_cloud_quotas_quota_preference](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_quotas_quota_preference)\n- [google_cloud_quotas_quota_adjuster_settings](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_quotas_quota_adjuster_settings) ([Preview](/products#product-launch-stages))\n\n### Data sources\n\nCloud Quotas provides the following Terraform data sources:\n\n- [google_cloud_quotas_quota_info](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/cloud_quotas_quota_info)\n- [google_cloud_quotas_quota_infos](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/cloud_quotas_quota_infos)\n\nWhat's next\n-----------\n\nLearn more about Terraform:\n\n- [What is Terraform?](https://developer.hashicorp.com/terraform/intro)\n\n- [Terraform Developer website](https://developer.hashicorp.com/terraform/)\n\n- [Terraform Language Documentation](https://developer.hashicorp.com/terraform/language)\n\n- [Terraform CLI Documentation](https://developer.hashicorp.com/terraform/cli)"]]