Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
psychomantys committed Apr 23, 2024
1 parent 6fc21a0 commit 6952604
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion acl.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ resource "aws_s3_bucket_ownership_controls" "bucket_acl" {

resource "aws_s3_bucket_acl" "grant_owner_to_iam" {
count = var.create && var.create_iam_user && var.create_iam_user_write_acl ? 1 : 0
depends_on = [aws_s3_bucket_ownership_controls.bucket_acl[0]]
depends_on = [
aws_s3_bucket_ownership_controls.bucket_acl[0],
aws_iam_user.bucket_user[0],
]

bucket = aws_s3_bucket.bucket[0].id
access_control_policy {
Expand Down

0 comments on commit 6952604

Please sign in to comment.