gcs_backend

    0

    2

    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

    data "terraform_remote_state" "${myBackend}" {
       backend = "gcs"
       config {
           bucket = "terraform-state-prod"
           path = "network/terraform.tfstate"
           project = "goopro"
       }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.