Skip to content

Commit 595b65d

Browse files
committed
enable access logs
1 parent 0faf9db commit 595b65d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrastructure/modules/s3/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ resource "aws_s3_bucket_versioning" "bucket_versioning" {
139139
}
140140

141141
resource "aws_s3_bucket_logging" "bucket_logging" {
142-
count = var.access_logs_enabled ? 0 : 1
142+
count = var.access_logs_enabled ? 1 : 0
143143
bucket = aws_s3_bucket.bucket.id
144144
target_bucket = var.access_logs_bucket_id
145145
target_prefix = "${aws_s3_bucket.bucket.id}/"

0 commit comments

Comments
 (0)