Skip to content

Commit efda6cc

Browse files
committed
JavaScript (v3): Photo Analyzer - Block non-SSL requests to bucket.
1 parent 67c7298 commit efda6cc

File tree

1 file changed

+17
-0
lines changed
  • javascriptv3/example_code/cross-services/photo_analyzer

1 file changed

+17
-0
lines changed

javascriptv3/example_code/cross-services/photo_analyzer/stack.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,23 @@ Resources:
2626
Ref: bucketforimages293BECA3
2727
PolicyDocument:
2828
Statement:
29+
- Action: s3:*
30+
Condition:
31+
Bool:
32+
aws:SecureTransport: "false"
33+
Effect: Deny
34+
Principal:
35+
AWS: "*"
36+
Resource:
37+
- Fn::GetAtt:
38+
- bucketforimages293BECA3
39+
- Arn
40+
- Fn::Join:
41+
- ""
42+
- - Fn::GetAtt:
43+
- bucketforimages293BECA3
44+
- Arn
45+
- /*
2946
- Action:
3047
- s3:GetObject*
3148
- s3:GetBucket*

0 commit comments

Comments
 (0)