Skip to content

Commit

Permalink
nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-heery committed Sep 16, 2024
1 parent eb1930d commit d9b52a6
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 @@ -110,7 +110,7 @@ resource "aws_s3_bucket_lifecycle_configuration" "default" {

# Configure bucket access logging for buckets in the same account
resource "aws_s3_bucket_logging" "default_single_name" {
for_each = (length(var.log_bucket) > 0) ? toset([var.log_bucket]) : []
for_each = var.log_bucket != null ? toset([var.log_bucket]) : []
bucket = aws_s3_bucket.default.id
target_bucket = var.log_bucket
target_prefix = var.log_prefix
Expand Down

0 comments on commit d9b52a6

Please sign in to comment.