We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8195976 + 7d896d2 commit a9eb69aCopy full SHA for a9eb69a
template.yml
@@ -209,6 +209,22 @@ Resources:
209
"aws:ResourceTag/dp:exclude:identity": "true"
210
BoolIfExists:
211
"aws:PrincipalIsAWSService": "false"
212
+ - Sid: EnforceNetworkPerimeter
213
+ Effect: Deny
214
+ Principal: "*"
215
+ Action: "s3:*"
216
+ Resource: "*"
217
+ Condition:
218
+ StringNotEqualsIfExists:
219
+ "aws:VpceOrgID": !If
220
+ - cHasOrganizationId
221
+ - !Ref pOrganizationId
222
+ - !GetAtt rOrganization.Id
223
+ "aws:PrincipalTag/dp:exclude:network": "true"
224
+ "aws:ResourceTag/dp:exclude:network": "true"
225
+ BoolIfExists:
226
+ "aws:PrincipalIsAWSService": "false"
227
+ "aws:ViaAWSService": "false"
228
- Sid: EnforceConfusedDeputyProtection
229
Effect: Deny
230
Principal: "*"
0 commit comments