local_backend

    0

    0

    lucycodes42

    Terraform snippets

    This code is telling Terraform to load the Terraform state data for a backend that is located at the path module directory.

    Shortcut: tf_local_backend

    data "terraform_remote_state" "${myBackend}" {
       backend = "local"
       config {
           path = "\${path.module}/../../terraform.tfstate"
       }
    }
    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.