Skip to content

Commit

Permalink
Make secret policy creation dependent on admin login (#4)
Browse files Browse the repository at this point in the history
The secrets that are created with the admin login for Postgres need to
exist before we attach a policy to it.
  • Loading branch information
clarissalimab authored May 21, 2024
1 parent 36a2074 commit 8975d8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions postgres.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,6 @@ module "postgres_policy" {
policy_name = "${local.instance_name}-postgres"
role_names = [module.pod_role.name]
secret_names = [module.postgres_admin_login[count.index].secret_name]

depends_on = [module.postgres_admin_login]
}

0 comments on commit 8975d8f

Please sign in to comment.