data "terraform_remote_state" "${myBackend}" {
         backend = "gcs"
         config {
             bucket = "terraform-state-prod"
             path = "network/terraform.tfstate"
             project = "goopro"
         }
      }
      Terraform language logo

      gcs_backend

      0

      0

      avatar
      lucycodes42
      Terraform snippets

      This code sets up a Terraform remote state backend with a GCS bucket and path. The backend is configured to use the goopro project as the project name.

      Shortcut: tf_gcs_backend

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.