Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created September 14, 2019 03:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xximjasonxx/bd8f931dc1d0a4ab49bf05123ee08ed4 to your computer and use it in GitHub Desktop.
Save xximjasonxx/bd8f931dc1d0a4ab49bf05123ee08ed4 to your computer and use it in GitHub Desktop.
awBucketPolicy:
Type: AWS::S3::BucketPolicy
Properties:
Bucket: !Ref RawBucket
PolicyDocument:
Statement:
- Action: "s3:Put*"
Effect: Allow
Resource:
Fn::Join:
- ""
-
- !GetAtt RawBucket.Arn
- "/*"
Principal:
AWS: "*"
Service: apigateway.amazonaws.com
- Action: "s3:Get*"
Effect: Allow
Resource:
Fn::Join:
- ""
-
- !GetAtt RawBucket.Arn
- "/*"
Principal:
AWS: "*"
Service: lambda.amazonaws.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment