We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd5818a + cc19b80 commit 563e365Copy full SHA for 563e365
groups/storage/data.tf
@@ -56,4 +56,29 @@ data "aws_iam_policy_document" "bucket" {
56
values = ["aws:kms"]
57
}
58
59
+
60
+ statement {
61
+ sid = "allow_ssl_requests_only"
62
+ effect = "Deny"
63
64
+ principals {
65
+ type = "*"
66
+ identifiers = ["*"]
67
+ }
68
69
+ actions = [
70
+ "s3:*"
71
+ ]
72
73
+ resources = [
74
+ "${aws_s3_bucket.data.arn}",
75
+ "${aws_s3_bucket.data.arn}/*"
76
77
78
+ condition {
79
+ test = "Bool"
80
+ variable = "aws:SecureTransport"
81
+ values = ["false"]
82
83
84
0 commit comments