Skip to Content
Hands-On Serverless Computing
book

Hands-On Serverless Computing

by Kuldeep Chowhan
July 2018
Intermediate to advanced
350 pages
8h 47m
English
Packt Publishing
Content preview from Hands-On Serverless Computing

Three Lambda functions

The following SAM template creates three AWS Lambda functions that generate different resolutions for the photo that was uploaded to the S3 bucket. If you look at the template, all three AWS Lambda function events are configured to the same Amazon SNS topic:

ThumbNailGenerationFunction: Type: AWS::Serverless::Function Properties: CodeUri: . Handler: index.handler Runtime: nodejs8.10 Policies: - AmazonS3FullAccessPolicy Events: SNS1: Type: SNS Properties: Topic: Ref: PhotoUploadTopic IconGenerationFunction: Type: AWS::Serverless::Function Properties: CodeUri: . Handler: index.handler Runtime: nodejs8.10 Policies: - AmazonS3FullAccessPolicy Events: SNS1: Type: SNS Properties: Topic: Ref: PhotoUploadTopic HighResolutionGenerationFunction: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn AWS Serverless Computing

Learn AWS Serverless Computing

Scott Patterson
Erlang and OTP in Action

Erlang and OTP in Action

Eric Merritt, Richard Carlsson, Martin Logan

Publisher Resources

ISBN: 9781788836654Supplemental Content