i want to automatize Artifactory repository creation. For that i use the Atlasian artifcatory plugin but i have a problem to declare local-repository befor virtual-repository.
This is my folder :
modules/
├── local-repository/
│ ├── main.tf
│ ├── variables.tf
├── virtual-repository/
│ ├── main.tf
│ └──variables.tf
│── local-repository-xxx.tf
│── virtual-repository-xxx.tf
│── variables.tf
│──provider.tf
│── version.tf
Local-repository.tf :
resource "artifactory_local_repository" "local-repository" {
key = var.key
package_type = var.type
}
Virtual repository :
resource "artifactory_virtual_repository" "virtual-repository" {
key = var.key
package_type = var.type
repositories = [var.repositories]
}
I want to create all local repositories first, then we want to create virtual repository.
How i use call depend_on in this case ?
Thanks