0% found this document useful (0 votes)
9 views

Lab#4

Uploaded by

Tú Phạm
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Lab#4

Uploaded by

Tú Phạm
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

API Engineering COMP306

Lab#4 – Serverless Applications with AWS Step Functions

Due Date: Midnight of December 10 (Tuesday)

Purpose: The purpose of this lab is to help you:


• Understand Lambda functions
• Understand serverless applications
• Understand state machine
• Become familiar with serverless application implementation with step functions
• Understand workflow automation

Instructions: Be sure to read the following general instructions carefully:


• This lab should be completed individually.
• You can demo your solution in person or create a demonstration video.
• Submit your package through the dropbox. Your submission should be named
following the pattern of studentID(yourlastname)_Labnumber.zip. e.g.,
300123456(smith)_Lab#4.zip

Rubric

Functionality Marks
Lambda function to detect labels, and write the labels and other corresponding 5
image metadata to DynamoDB table
1. Create DynamoDB table via AWS Management console (1 mark)
2. Data model for input (1 mark)
3. Get newly uploaded image(s) object URL (1 mark)
4. Insert an item for each uploaded image object url and all detected labels
with confidence level that is higher than the specified level to the
DynamoDB table, use map data type to store label name and confidence
(2 marks)
Lambda function to generate thumbnail and store it to S3 5
1. Generate thumbnail (3 marks)
2. Save the thumbnail (2 marks) to S3
State machine 5
Publish to AWS Lambda 2
Automate your state machine (finish the tutorial) 5
The screenshot to show that you have deleted your AWS account 3

Question

You are asked to develop a serverless application using AWS step function to build an image processing
workflow. More specifically, your serverless application should be triggered when image file(s) have
been uploaded to S3 bucket, and do following:
1. Use AWS Rekognition service to detect label and insert those labels with confidence greater
than specified level to your DynamoDB table

Lab #4 Page 1 of 2
API Engineering COMP306

2. Generate a thumbnail. In order to avoid recursive invocation, store the generated thumbnail in a
different S3 bucket. you can find code snippet to generate thumbnail at
https://www.grapecity.com/blogs/create-a-thumbnail-image-using-documents-for-imaging

Finish the tutorial (https://docs.aws.amazon.com/step-functions/latest/dg/tutorial-cloudwatch-events-


s3.html) to help yourself become familiar with the process of Starting a State Machine Execution in
Response to Amazon S3 Events. Then go through the whole process to ensure that after an image has
been uploaded to the specified S3 bucket, your state machine will be triggered.

Lab #4 Page 2 of 2

You might also like