From b953424aec240385c6879676a9de9e51b84df518 Mon Sep 17 00:00:00 2001 From: Daisuke Date: Sun, 7 Aug 2022 16:00:27 +0900 Subject: [PATCH] fixing to move without output_location (#770) --- fast/stages/01-resman/outputs-files.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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