This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
CreateThumbnailLambdaVersionFile: | |
Type: String | |
Description: The file containing the compiled contents for the Lambda | |
AnalyzeImageLambdaVersionFile: | |
Type: String | |
Description: The file containing the compiled contents for the Lambda | |
Resources: | |
CreateThumbnailFunction: | |
Type: AWS::Lambda::Function | |
Properties: | |
Code: | |
S3Bucket: thumbnailcreator-artifacts | |
S3Key: !Ref CreateThumbnailLambdaVersionFile | |
Handler: CreateThumbnailFunction::Functions.CreateThumbnailFunction::ExecuteAsync | |
Runtime: dotnetcore2.1 | |
Role: !GetAtt AppRole.Arn | |
TracingConfig: | |
Mode: Active | |
Timeout: 300 | |
Environment: | |
Variables: | |
ThumbnailBucketName: !Ref ThumbnailBucketName | |
AnalyzeImageFunction: | |
Type: AWS::Lambda::Function | |
Properties: | |
Code: | |
S3Bucket: thumbnailcreator-artifacts | |
S3Key: !Ref AnalyzeImageLambdaVersionFile | |
Handler: AnalyzeImageFunction::Functions.AnalyzeImageFunction::ExecuteAsync | |
Runtime: dotnetcore2.1 | |
Role: !GetAtt AppRole.Arn | |
TracingConfig: | |
Mode: Active | |
Timeout: 600 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment