Skip to content

Commit

Permalink
fix statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ashle001 committed Sep 24, 2020
1 parent 712b61d commit 5ab18c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,15 @@ data "aws_iam_policy_document" "this" {
principals {
type = "AWS"
identifiers = ["*"]
}
resources = [aws_s3_bucket.this.arn, "${aws_s3_bucket.this.arn}/*"]
condition {
test = "Bool"
variable = "aws:SecureTransport"
values = ["false"]
}
}
}


#---
# apply policy to bucket and public access block policy to bucket
Expand Down

0 comments on commit 5ab18c2

Please sign in to comment.