Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created September 2, 2019 15:03
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/4bdc893c2946eb60431d3924d331895c to your computer and use it in GitHub Desktop.
Save xximjasonxx/4bdc893c2946eb60431d3924d331895c to your computer and use it in GitHub Desktop.
AWSTemplateFormatVersion: 2010-09-09
Description: "Creates infrastructure for Thumnbail Creator"
Resources:
CreateThumbnailFunctionSNSInvokePermission:
Type: AWS::Lambda::Permission
Properties:
FunctionName: !Ref CreateThumbnailFunction
Action: "lambda:InvokeFunction"
Principal: "sns.amazonaws.com"
AnalyzeImageFunctionSNSInvokePermission:
Type: AWS::Lambda::Permission
Properties:
FunctionName: !Ref AnalyzeImageFunction
Action: "lambda:InvokeFunction"
Principal: "sns.amazonaws.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment