Skip to content

Commit

Permalink
Make policy to read Redis secret dependent on secret creation (#5)
Browse files Browse the repository at this point in the history
Similarly to seen on 8975d8f, the secret needs to exist before we assign
a policy to it.
  • Loading branch information
clarissalimab authored May 24, 2024
1 parent 8975d8f commit 5f34ec2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redis.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ module "redis_policy" {
policy_name = "${local.instance_name}-redis"
role_names = [module.pod_role.name]
secret_names = [module.redis_token[count.index].secret_name]

depends_on = [module.redis_token]
}

0 comments on commit 5f34ec2

Please sign in to comment.