Skip to content

Commit

Permalink
Ensure permissions are deployed before the secret rotation is applied
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickherrera authored Oct 17, 2022
2 parents 2b9e826 + 3946160 commit 5c9c396
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions infra/terraform/modules/_auth/secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ resource "aws_secretsmanager_secret_rotation" "key_pair" {
rotation_rules {
automatically_after_days = var.key_pair_rotation_period_days
}

# Secrets manager requires the access to the rotation lambda to be applied
depends_on = [
aws_lambda_permission.allow_secrets_manager
]
}

0 comments on commit 5c9c396

Please sign in to comment.