We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d61a7dd commit dc84419Copy full SHA for dc84419
modules/vertice-governance-role/iam_policies.tf
@@ -31,6 +31,33 @@ data "aws_iam_policy_document" "vertice_cur_bucket_access" {
31
]
32
}
33
34
+ statement {
35
+ sid = "AllowSSLRequestsOnly"
36
+ effect = "Deny"
37
+
38
+ actions = [
39
+ "s3:*",
40
+ ]
41
42
+ resources = [
43
+ "arn:aws:s3:::${var.cur_bucket_name}",
44
+ "arn:aws:s3:::${var.cur_bucket_name}/*"
45
46
47
+ principals {
48
+ type = "*"
49
+ identifiers = ["*"]
50
+ }
51
52
+ condition {
53
+ test = "Bool"
54
+ variable = "aws:SecureTransport"
55
+ values = [
56
+ "false"
57
58
59
60
61
lifecycle {
62
precondition {
63
condition = var.cur_bucket_name != null
0 commit comments