Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created September 14, 2019 03:16
Embed
What would you like to do?
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