data "terraform_remote_state" "${myBackend}" {
         backend = "artifactory"
         config {
             username = "SheldonCooper"
             password = "AmyFarrahFowler"
             url = "https://custom.artifactoryonline.com/artifactory"
             repo = "foo"
             subpath = "terraform-bar"
         }
      }
      Terraform language logo

      artifactory_backend

      0

      1

      avatar
      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

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.