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 Storage.
Terraform is integrated with Cloud Shell, and
Cloud Shell automatically authenticates Terraform.
When you use Terraform with Cloud Storage, you create a
Terraform configuration file that describes your
desired infrastructure. When you apply the configuration,
Terraform creates an execution plan and performs the operations needed
to provision your infrastructure. For example, you can use Terraform to
create storage buckets, upload objects, and control the lifecycle of those
objects.
Terraform resources for Cloud Storage
The following table lists the Terraform resources that
are currently available for Cloud Storage, with links to
Terraform configuration samples in Cloud Storage
documentation:
[[["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-28 UTC."],[],[],null,["# Terraform support for Cloud Storage\n\n[Terraform](https://www.terraform.io/) is an infrastructure-as-code (IaC) tool that\nyou can use to provision resources and permissions for Cloud Storage.\nTerraform is integrated with [Cloud Shell](/shell/docs/using-cloud-shell), and\nCloud Shell automatically authenticates Terraform.\n\nWhen you use Terraform with Cloud Storage, you create a\n[Terraform configuration file](https://developer.hashicorp.com/terraform/language) that describes your\ndesired infrastructure. When you [apply the configuration](https://developer.hashicorp.com/terraform/cli/commands/apply),\nTerraform creates an execution plan and performs the operations needed\nto provision your infrastructure. For example, you can use Terraform to\ncreate storage buckets, upload objects, and control the lifecycle of those\nobjects.\n\nTerraform resources for Cloud Storage\n-------------------------------------\n\nThe following table lists the [Terraform resources](https://developer.hashicorp.com/terraform/language/resources) that\nare currently available for Cloud Storage, with links to\nTerraform configuration samples in Cloud Storage\ndocumentation:\n\nWhat's next\n-----------\n\nComplete the [Terraform quickstart for Cloud Storage](/storage/docs/terraform-create-bucket-upload-object) to\nget a quick understanding of how to provision Cloud Storage resources."]]