Created
July 20, 2022 21:44
-
-
Save antklim/27dd875291bb36411acc87f6b4c9deea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FrontendS3Policy: | |
Type: AWS::S3::BucketPolicy | |
Properties: | |
Bucket: !Ref FrontendS3 | |
PolicyDocument: | |
Version: "2012-10-17" | |
Statement: | |
- Effect: Allow | |
Action: | |
- s3:GetObject | |
Principal: | |
CanonicalUser: !GetAtt FrontendOAI.S3CanonicalUserId | |
Resource: !Sub | |
- arn:aws:s3:::${Bucket}/* | |
- { Bucket: !Ref FrontendS3 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment