Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created September 2, 2019 02:43
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/933d67dbbbe2d50a5b21c3d51a6c4389 to your computer and use it in GitHub Desktop.
Save xximjasonxx/933d67dbbbe2d50a5b21c3d51a6c4389 to your computer and use it in GitHub Desktop.
AWSTemplateFormatVersion: 2010-09-09
Description: "Creates infrastructure for Thumnbail Creator"
Parameters:
RawBucketName:
Type: String
Default: rawimages
Description: Enter the name of the Raw Images Bucket
ThumbnailBucketName:
Type: String
Default: thumbnailimages
Description: Enter the name of the Thumbnail Images Bucket
Resources:
RawBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: !Ref RawBucketName
NotificationConfiguration:
TopicConfigurations:
- Event: "s3:ObjectCreated:*"
Topic: !Ref ImageUploadTopic
ThumbnailBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: !Ref ThumbnailBucketName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment