fixing to move without output_location (#770)

This commit is contained in:
Daisuke 2022-08-07 16:00:27 +09:00 committed by GitHub
parent 70a3d6d980
commit b953424aec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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