Skip to content

Commit

Permalink
Creating Role to be assumed by ELB for S3
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Elhaiek committed Apr 10, 2024
1 parent 5cc1cf2 commit 8b1e683
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions terraform/modules/alb_logging/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,16 @@ data "aws_iam_policy_document" "bucket_policy" {
# }


# condition {
# test = "Null"
# variable = "s3:x-amz-server-side-encryption"
# values = ["true"]
# }

condition {
test = "Null"
variable = "s3:x-amz-server-side-encryption"
values = ["true"]
test = "StringEquals"
variable = "s3:x-amz-acl"
values = ["bucket-owner-full-control"]
}
}
}
Expand Down

0 comments on commit 8b1e683

Please sign in to comment.