diff --git a/javascriptv3/example_code/cross-services/photo_analyzer/stack.yaml b/javascriptv3/example_code/cross-services/photo_analyzer/stack.yaml index d591167eeb3..33cd001389b 100644 --- a/javascriptv3/example_code/cross-services/photo_analyzer/stack.yaml +++ b/javascriptv3/example_code/cross-services/photo_analyzer/stack.yaml @@ -26,6 +26,23 @@ Resources: Ref: bucketforimages293BECA3 PolicyDocument: Statement: + - Action: s3:* + Condition: + Bool: + aws:SecureTransport: "false" + Effect: Deny + Principal: + AWS: "*" + Resource: + - Fn::GetAtt: + - bucketforimages293BECA3 + - Arn + - Fn::Join: + - "" + - - Fn::GetAtt: + - bucketforimages293BECA3 + - Arn + - /* - Action: - s3:GetObject* - s3:GetBucket*