Skip to content

Commit

Permalink
Try handling dependency with depends_on
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Nov 6, 2024
1 parent a4b967d commit ca7b13d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deployments/spacelift/dpe-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,11 @@ resource "spacelift_stack_destructor" "auth0-stack-destructor" {


resource "spacelift_environment_variable" "auth0-stack-environment-variables" {
for_each = var.deploy_auth0 ? local.auth0_stack_variables : tomap({})
depends_on = [
spacelift_stack.auth0
]

for_each = local.auth0_stack_variables

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

0 comments on commit ca7b13d

Please sign in to comment.