We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c7b858 commit 9b20dbbCopy full SHA for 9b20dbb
main.tf
@@ -258,7 +258,7 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "example" {
258
}
259
260
resource "aws_s3_bucket_policy" "block-http" {
261
- count = var.block_http_traffic ? 1 : 0
+ count = var.enable && var.enable_flow_log && var.flow_log_destination_arn == null && var.flow_log_destination_type == "s3" && var.block_http_traffic ? 1 : 0
262
bucket = aws_s3_bucket.mybucket[0].id
263
264
policy = jsonencode({
0 commit comments