Skip to content

Commit

Permalink
Add if check within for_each loop
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Nov 6, 2024
1 parent ca7b13d commit 330562c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deployments/spacelift/dpe-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ resource "spacelift_environment_variable" "auth0-stack-environment-variables" {
spacelift_stack.auth0
]

for_each = local.auth0_stack_variables
for_each = { for k, v in local.auth0_stack_variables : k => v if var.deploy_auth0 }

stack_id = spacelift_stack.auth0[0].id
name = "TF_VAR_${each.key}"
Expand Down

0 comments on commit 330562c

Please sign in to comment.