Skip to content

Commit

Permalink
fix: Updated s3 block http policy condition (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
13archit committed Jul 31, 2023
1 parent 0c7b858 commit 9b20dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "example" {
}

resource "aws_s3_bucket_policy" "block-http" {
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
bucket = aws_s3_bucket.mybucket[0].id

policy = jsonencode({
Expand Down

0 comments on commit 9b20dbb

Please sign in to comment.