I am trying to connect to the jfrog artifatory using
provider "artifactory" {
url = "url"
access_token = "token"
}
I amrefering link to read repos from artifactory
data "artifactory_repositories" "repositories" {
project_key = "key"
repository_type = "local"
package_type = "pypi"
}
Trying to install repo using below code in other resource
library {
pypi {
package = "fbprophet==0.6"
repo = data.artifactory_repositories.repositories.url
}
}
I am getting an error while installing repo
This object has no argument, nested block, or exported attribute named "url".
How to use the output from data resouce and veridy if the connection to artifactory is successful?
The documentation you've linked to says that the data source has a property named repos, which is a list of repositories.
So you probably just want the first element in the list (unless you're finding more than one). Maybe try something like this: