Install Terraform

This page describes the steps to install Terraform for Cloud de Confiance in Cloud Shell and in a local shell. Cloud Shell is an interactive shell environment for Cloud de Confiance that lets you learn and experiment with Cloud de Confiance and manage your projects and resources from your web browser.

For a introductory guide to using Terraform with Cloud de Confiance, see the Terraform for Cloud de Confiance Quickstart.

Cloud Shell

  1. To 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.

  2. 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
    
    
  3. To use Terraform with Cloud de Confiance, you should ensure the following tasks are completed within Cloud de Confiance:

Local shell

  1. Use the installation instructions provided by Terraform.

  2. 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
    
  3. To use Terraform with Cloud de Confiance, you should ensure the following tasks are completed within Cloud de Confiance:

What's next