Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit 73392bf

Browse files
author
Niris Okram
committed
updated the s3 bucket policies to comply with s3-bucket-ssl-requests-only rule
1 parent 07f9c9c commit 73392bf

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

govcloud/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,21 @@ _Note: You can customize this implementation to work with linked accounts as wel
6767
"aws:PrincipalOrgID": "<REPLACE WITH YOUR AWS ORGANIZATION ID>"
6868
}
6969
}
70+
},
71+
{
72+
"Sid": "AllowSSLRequestsOnly",
73+
"Effect": "Deny",
74+
"Principal": "*",
75+
"Action": "s3:*",
76+
"Resource": [
77+
"arn:aws:s3:::<REPLACE WITH YOUR AMAZON S3 BUCKET NAME>",
78+
"arn:aws:s3:::<REPLACE WITH YOUR AMAZON S3 BUCKET NAME>/*"
79+
],
80+
"Condition": {
81+
"Bool": {
82+
aws:SecureTransport: false
83+
}
84+
}
7085
}
7186
]
7287
}
@@ -119,6 +134,21 @@ _Note: You can customize this implementation to work with linked accounts as wel
119134
"aws:PrincipalOrgID": "<REPLACE WITH YOUR AWS ORGANIZATION ID>"
120135
}
121136
}
137+
},
138+
{
139+
"Sid": "AllowSSLRequestsOnly",
140+
"Effect": "Deny",
141+
"Principal": "*",
142+
"Action": "s3:*",
143+
"Resource": [
144+
"arn:aws-us-gov:s3:::<REPLACE WITH YOUR AMAZON S3 BUCKET NAME>",
145+
"arn:aws-us-gov:s3:::<REPLACE WITH YOUR AMAZON S3 BUCKET NAME>/*"
146+
],
147+
"Condition": {
148+
"Bool": {
149+
aws:SecureTransport: false
150+
}
151+
}
122152
}
123153
]
124154
}

0 commit comments

Comments
 (0)