Skip to content

Commit

Permalink
enforcing SSL for every action (#157)
Browse files Browse the repository at this point in the history
fix:aws-s3-private-bucket:Bucket policy enforces SecureTransport for all actions
  • Loading branch information
kuannie1 authored and czimergebot committed Dec 10, 2019
1 parent 190c3c2 commit 39aa6fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws-s3-private-bucket/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ data "aws_iam_policy_document" "bucket_policy" {
source_json = "${var.bucket_policy}"

statement {
sid = "EnforceHTTPS"
actions = ["s3:GetObject"]
sid = "EnforceTLS"
actions = ["*"]
resources = ["arn:aws:s3:::${var.bucket_name}/*"]

principals {
Expand Down

0 comments on commit 39aa6fa

Please sign in to comment.