Skip to content

Commit

Permalink
Add time_sleep for the aws_iam_policy_attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
lgallard committed Aug 24, 2021
1 parent dbc9b51 commit f92ef0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bucket_replication.tf
Expand Up @@ -95,6 +95,7 @@ resource "aws_iam_policy_attachment" "bucket_replication" {
name = format("%s-%s-%s-role-policy-attachment", var.namespace, var.stage, var.name)
roles = [aws_iam_role.bucket_replication[0].name]
policy_arn = aws_iam_policy.bucket_replication[0].arn
depends_on = [aws_s3_bucket.replication_bucket, time_sleep.wait_2_mins]
}

resource "aws_s3_bucket_policy" "bucket_replication" {
Expand Down

0 comments on commit f92ef0e

Please sign in to comment.