Stay organized with collections Save and categorize content based on your preferences.
This page describes the steps to install Terraform for Google Cloud in Cloud Shell and in a local shell. Cloud Shell is an interactive shell environment for Google Cloud that lets you learn and experiment with Google Cloud and manage your projects and resources from your web browser.
For a introductory guide to using Terraform with Google Cloud, see the Terraform for Google Cloud Quickstart.
Cloud ShellTo use an online terminal with the gcloud CLI and Terraform already set up, activate Cloud Shell:
At the bottom of this page, a Cloud Shell session starts and displays a command-line prompt. It can take a few seconds for the session to initialize.
Run the following command to verify that Terraform is available:
terraform
The output should be similar to the following:
Usage: terraform [global options] <subcommand> [args]
The available commands for execution are listed below.
The primary workflow commands are given first, followed by
less common or more advanced commands.
Main commands:
init Prepare your working directory for other commands
validate Check whether the configuration is valid
plan Show changes required by the current configuration
apply Create or update infrastructure
destroy Destroy previously-created infrastructure
To use Terraform with Google Cloud, you should ensure the following tasks are completed within Google Cloud:
Use the installation instructions provided by Terraform.
Run the following command to verify that Terraform is available:
terraform
The output should be similar to the following:
Usage: terraform [global options] <subcommand> [args]
The available commands for execution are listed below.
The primary workflow commands are given first, followed by
less common or more advanced commands.
Main commands:
init Prepare your working directory for other commands
validate Check whether the configuration is valid
plan Show changes required by the current configuration
apply Create or update infrastructure
destroy Destroy previously-created infrastructure
To use Terraform with Google Cloud, you should ensure the following tasks are completed within Google Cloud:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["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-07 UTC."],[[["This guide details the process of installing and configuring Terraform for Google Cloud, both in the online Cloud Shell environment and in a local shell."],["To get started, you'll need to create or select a Google Cloud project and ensure that billing is enabled for it."],["Provisioning Google Cloud resources with Terraform requires enabling the relevant APIs and setting up specific Identity and Access Management roles for your user account."],["Verify that Terraform is correctly installed and operational by executing the `terraform` command in your terminal."],["The Cloud Shell environment comes pre-configured with Terraform and the gcloud CLI, while local shell users will have to install and initialize them."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4