AWS Lambda and API Gateway: a serverless HTTP API with DynamoDB
At Sawa Express, in Douala, the phone rings all day: forty customers a day want to know where their parcel is. Patrick is finishing the mobile app that will let them track their deliveries on their own. All he is missing is the API, and he wants it by Friday. You build it on AWS, with no server to manage: an AWS Lambda function for the logic, Amazon API Gateway for the public address, Amazon DynamoDB for the parcels. From AWS CloudShell, you create the table, deploy the function, give it the one permission it lacks, then expose three routes: create a parcel, track it, move its delivery forward. You then test the API the way Patrick's app will, and find out what a first version lets through: a parcel with no recipient accepted, an unknown number that makes the server crash. You turn it into an API that always returns the right code, 201, 200, 400 or 404, and keeps its internal errors for its logs. The first lab of the AWS path for developers, which prepares you for the AWS Certified Developer - Associate certification (DVA-C02).
- No reviews yet
- Intermediate
- 2 h
- 1,500 credits
