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 0faf9db commit 595b65dCopy full SHA for 595b65d
infrastructure/modules/s3/main.tf
@@ -139,7 +139,7 @@ resource "aws_s3_bucket_versioning" "bucket_versioning" {
139
}
140
141
resource "aws_s3_bucket_logging" "bucket_logging" {
142
- count = var.access_logs_enabled ? 0 : 1
+ count = var.access_logs_enabled ? 1 : 0
143
bucket = aws_s3_bucket.bucket.id
144
target_bucket = var.access_logs_bucket_id
145
target_prefix = "${aws_s3_bucket.bucket.id}/"
0 commit comments