Lab - Building a Serverless API
Offered By: Amazon Web Services via AWS Skill Builder
Course Description
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
Tags
Related Courses
Introduction to Cloud Infrastructure TechnologiesLinux Foundation via edX Cloud Computing
Indian Institute of Technology, Kharagpur via Swayam Elastic Cloud Infrastructure: Containers and Services en Español
Google Cloud via Coursera Kyma – A Flexible Way to Connect and Extend Applications
SAP Learning Modernize Infrastructure and Applications with Google Cloud
Google Cloud via Coursera