Skip to content

Instantly share code, notes, and snippets.

@antklim
Created July 20, 2022 21:44
Show Gist options
  • Save antklim/27dd875291bb36411acc87f6b4c9deea to your computer and use it in GitHub Desktop.
Save antklim/27dd875291bb36411acc87f6b4c9deea to your computer and use it in GitHub Desktop.
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