APS 03
In this assignment, we are going to create a new version of the work from the API class.
Accept assignment
All assignments delivery will be made using Git repositories. Access the link below to accept the invitation and start working on the third assignment.
Clone repository
Clone your private repository:
Question 1
Now, it's time to start working!
Our goal is to transform the predict
route from class 02 into a lambda function. In other words, assume the model is already trained and that the model pickle can be embedded in the Docker image.
Important!
Notice that we will no longer be using FastAPI.
We will create a lambda function that has a handler for predict, then we will create an API Gateway that exposes the lambda function.
Part I
This part is about creating a Lambda function for the sentiment analysis model manually. It's a more hands-on approach compared to using the Terraform setup.
Warning
The Part I is totally optional.
If You prefer to use the Terraform setup right away, feel free to skip this part.
Question 2
Question 3
Question 4
Question 5
Question 6
Question 7
Question 8
Question 9
Question 10
Question 11
Question 12
Part 2
This APS requires that you use the Terraform setup to create the Lambda function and API Gateway.
Use the past pages as a reference.
It's advisable to study about and implement:
- How to use Terraform Modular Configuration (project structure)?
- How to perform Variable Validation (e.g Lambda memory size)?
- How to use Remote State (S3) to store Terraform state remotely for team collaboration?
Question 13
Question 14
Rubrics
- To be released