AWS Lambda Functions & API Gateway
Intermediate · 40 minutes · 100 points
In this hands-on lab, you will work with AWS Lambda and API Gateway using the AWS CLI against floci, a local AWS emulator that runs inside your lab container. You will create an IAM execution role, package and deploy a Python Lambda function, invoke it, update its environment variables, and wire up an HTTP API Gateway endpoint that calls it. floci runs each Lambda function in its own container through Docker, so invocations execute your real code. Nothing here touches a real AWS account. This lab builds foundational cloud-native skills for serverless architecture on AWS.
What you’ll learn
- Create an IAM execution role suitable for a Lambda function using the AWS CLI
- Package a Python Lambda function into a ZIP deployment artifact and deploy it to AWS Lambda via CLI
- Create an HTTP API Gateway, integrate it with the Lambda function, and invoke it end-to-end
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 3 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: floci/floci:2.5.0-compat
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
Topics: aws, lambda, api-gateway, serverless, python, iam, floci, aws-cli, cloud-native
Create a free account to start this lab.