diff --git a/fast/stages/01-resman/outputs-files.tf b/fast/stages/01-resman/outputs-files.tf index 8f528fa7..5efad294 100644 --- a/fast/stages/01-resman/outputs-files.tf +++ b/fast/stages/01-resman/outputs-files.tf @@ -31,7 +31,7 @@ resource "local_file" "tfvars" { } resource "local_file" "workflows" { - for_each = local.cicd_workflows + for_each = var.outputs_location == null ? {} : local.cicd_workflows file_permission = "0644" filename = "${pathexpand(var.outputs_location)}/workflows/${replace(each.key, "_", "-")}-workflow.yaml" content = each.value