Terraform snippets

    The above code uses the artifactory remote state provider to store the state of a Terraform project on an Artifactory server. The config section defines the username, password, and URL for accessing the remote state. The repo and subpath specify the name of the Terraform repository and the path to the directory containing the Terraform project, respectively.

    Shortcut: tf_artifactory_backend

    data "terraform_remote_state" "${myBackend}" {
       backend = "artifactory"
       config {
           username = "SheldonCooper"
           password = "AmyFarrahFowler"
           url = ""
           repo = "foo"
           subpath = "terraform-bar"
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    • 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.