We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a162988 commit f884573Copy full SHA for f884573
main.tf
@@ -54,7 +54,7 @@ resource "aws_s3_directory_bucket" "this" {
54
}
55
56
resource "aws_s3_bucket_logging" "this" {
57
- count = local.create_bucket && length(keys(var.logging)) > 0 && !var.is_directory_bucket ? 1 : 0
+ count = local.create_bucket && length(try(keys(var.logging), [])) > 0 && !var.is_directory_bucket ? 1 : 0
58
59
region = var.region
60
0 commit comments