0
2
llucycodes42
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"
}
}