Instale o Terraform

Esta página descreve os passos para instalar o Terraform Cloud de Confiance no Cloud Shell e numa shell local. A Cloud Shell é um ambiente de shell interativo para Cloud de Confiance que lhe permite aprender e experimentar Cloud de Confiance e gerir os seus projetos e recursos a partir do navegador de Internet.

Para um guia introdutório à utilização do Terraform com o Cloud de Confiance, consulte o Início rápido do Terraform para o Cloud de Confiance .

Cloud Shell

  1. Para usar um terminal online com a CLI gcloud e o Terraform já configurados, ative o Cloud Shell:

    Na parte inferior desta página, é iniciada uma sessão do Cloud Shell e é apresentado um comando. A sessão pode demorar alguns segundos a ser inicializada.

  2. Execute o seguinte comando para verificar se o Terraform está disponível:

    terraform
    

    O resultado deve ser semelhante ao seguinte:

    
    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. Para usar o Terraform com o Cloud de Confiance, deve garantir que as seguintes tarefas são concluídas no Cloud de Confiance:

Shell local

  1. Use as instruções de instalação fornecidas pelo Terraform.

  2. Execute o seguinte comando para verificar se o Terraform está disponível:

    terraform
    

    O resultado deve ser semelhante ao seguinte:

    
     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. Para usar o Terraform com o Cloud de Confiance, deve garantir que as seguintes tarefas são concluídas no Cloud de Confiance:

O que se segue?