Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
psychomantys committed Jun 28, 2024
1 parent b3fc7a6 commit de50ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ resource "aws_s3_bucket_public_access_block" "bucket_restrict_access" {
}

resource "aws_s3_bucket_intelligent_tiering_configuration" "bucket_tiering" {
count = var.create ? 1 : 0
count = var.create && length(var.intelligent_tiering)>0 ? 1 : 0

bucket = aws_s3_bucket.bucket[0].id
name = "EntireBucket"
Expand Down

0 comments on commit de50ade

Please sign in to comment.