Closed Joerg-L closed 2 weeks ago
Okay, we have solved that now by chnage the call approach
terraform apply
terraform apply -var run_permissions=true
While the child module has
module "default_permissions" {
count = var.run_permissions ? 1 : 0
source = "./modules/default_permissions"
project_id = azuredevops_project.this.id
}
in.
It's not perfect world solution, but it will work.
It would be more easier, if azuredevops_project would also deliver the groups back so that is not required to use
data "azuredevops_groups" "project-groups" {
project_id = var.project_id
}
Argh. Its not really solving the issue as
terraform apply
terraform apply -var run_permissions=true
terraform apply
will result in dropping the permissions again
any ideas?
@Joerg-L have you try depends_on
(depends_on = [data.azuredevops_groups.project-groups]
). depends_on
will blocked the azuredevops_git_permissions
until azuredevops_groups
finished.
hi there, so we want to create a terraform configuration which is able to do following things:
We have created following code snipped to do the permission job
We are recieving following error
We have also tryied to fix that with two separate calls of terrform with
terraform apply -target module.setup_projects
terraform apply -target module.setup_permissions
but that isn't fixing the issue. Someone an idea how to solve that topic?