Skip to content

Commit 8e4ebb1

Browse files
cdaniluksmiller171
andauthored
use coalesce
Co-authored-by: Scott Miller <scott@millergeek.xyz>
1 parent 4483e4a commit 8e4ebb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ resource "aws_s3_bucket" "this" {
4949
}
5050

5151
logging {
52-
target_bucket = var.logging_target_bucket != "" ? var.logging_target_bucket : var.bucket
52+
target_bucket = coalesce(var.logging_target_bucket, var.bucket)
5353
target_prefix = var.logging_target_prefix
5454
}
5555
}

0 commit comments

Comments
 (0)