This commit is contained in:
Zeeshaun
2026-03-13 12:58:13 -05:00
parent 4e6099ff5c
commit 64856c640e
203 changed files with 106084 additions and 0 deletions
@@ -0,0 +1,26 @@
resource "azuredevops_git_repository" "repositories" {
for_each = {
for pipeline in local.lz_config.aks_workloads :
pipeline.repo => pipeline
}
project_id = data.azuredevops_project.project.id
name = each.value.repo
initialization {
init_type = "Clean"
}
lifecycle {
# Repositories are critical, long-lived assets.
# Prevent accidental deletion caused by config changes,
# refactors, or terraform destroy.
prevent_destroy = true
# Ignore changes to initialization to support importing existing repositories.
# Once a repo exists, initialization settings are irrelevant.
ignore_changes = [
initialization,
]
}
}