Skip to content

Commit

Permalink
fix: fix index
Browse files Browse the repository at this point in the history
  • Loading branch information
githubjianli authored Nov 15, 2023
1 parent b5626ea commit 8fb6388
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions s3-other.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ resource "aws_s3_bucket_ownership_controls" "apiary_inventory_bucket" {
}

resource "aws_s3_bucket_acl" "apiary_inventory_bucket" {
depends_on = [aws_s3_bucket_ownership_controls.apiary_inventory_bucket]
bucket = aws_s3_bucket.apiary_inventory_bucket.id
count = var.s3_enable_inventory == true ? 1 : 0
depends_on = [aws_s3_bucket_ownership_controls.apiary_inventory_bucket[0]]
bucket = aws_s3_bucket.apiary_inventory_bucket[0].id
acl = "private"
}

Expand Down

0 comments on commit 8fb6388

Please sign in to comment.