Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created September 2, 2019 14:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save xximjasonxx/d0fcd70488a37a88000994a16bcfd3b4 to your computer and use it in GitHub Desktop.
AWSTemplateFormatVersion: 2010-09-09
Description: "Creates infrastructure for Thumnbail Creator"
Resources:
ImageUploadTopicPolicy:
Type: AWS::SNS::TopicPolicy
Properties:
PolicyDocument:
Id: S3TopicPublishPolicy
Version: "2012-10-17"
Statement:
- Sid: S3PublishAllowStatement
Effect: Allow
Principal:
Service:
- s3.amazonaws.com
Action: sns:Publish
Resource: !Ref ImageUploadTopic
Topics:
- !Ref ImageUploadTopic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment