artifactory_backend

    0

    2

    lucycodes42

    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 = "https://custom.artifactoryonline.com/artifactory"
           repo = "foo"
           subpath = "terraform-bar"
       }
    }
    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.