1
© 2010 VMware Inc. All rights reserved
AWS Lambda
Tutorial
2
Face Detection
Input Output
2
3
Sources
OpenCV statically bind library
Libraries used by numpy
numpy: Python library for library bindings
OpenCV configuration files
4
Face Detection
Replace with YOUR S3 bucket name
Replace with URL to your S3 bucket
3
5
Create Deployment Package
! Inside source directory type:
> zip –r face_detection_code.zip *
6
Create Lambda Function
4
7
Create Lambda Function
8
Create Lambda Function
Increase memory allocation and timeout
5
9
Configure Security Role
10
Configure Security Role
6
11
Configure Security Role
Replace with:
“s3:*”
12
Configure Test Values
7
13
Test Function
14
Create Web API
8
15
Create Method
16
Map HTTP Parameter for Function Argument
9
17
Map HTTP Parameter for Function Argument
18
Add Parameter to Method Request (for testing purposes)
10
19
Change Method Response Type to HTML
20
Deploy API
11
21
Deploy API
22
Test with Browser