Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Amazon Web Services

Lab - Building a Serverless API

Amazon Web Services and Amazon via AWS Skill Builder

Overview

In this Amazon Web Services (AWS) lab, you gain hands-on experience in deploying a serverless application programming interface (API) by using the AWS Serverless Application Model (AWS SAM).


Objectives


   •   Access the preconfigured AWS Cloud9 instance with the preloaded application code.

   •   Review the three application files (app.py, requirements.txt, template.yaml) and their purposes.

   •   Build and deploy the application by using the sam build and sam deploy --guided commands.

   •   Visit the API endpoint in a browser and used client URL (curl) commands to view the initial static text response.

   •   Modify the app.py file so that it uses the AWS SDK for Python (Boto3) to retrieve the contents from the object1 file and include the file contents in the Lambda response.

   •   Redeploy the updated application and verify that it returns the contents of the object1 file.


Prerequisites


   •   Familiar with the basic navigation of the AWS Management Console.

   •   Versed in editing and running scripts by using an AWS Cloud9 code editor and terminal.

   •   Have a basic understanding of AWS SAM, Amazon API Gateway, AWS Lambda, AWS CodePipeline, AWS CodeDeploy, and AWS CloudFormation.


Outline


Task 1: Review the application files

Task 2: Build and deploy the application

Task 3: Test the application

Task 4: Update the application and test the changes




Reviews

Start your review of Lab - Building a Serverless API

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.