
Master AWS serverless basics with Lambda and API Gateway, debugging via Cloud9 and X-Ray, and managing workloads with Step Functions across databases and DevOps pipelines.
Explore how serverless computing goes beyond lambda, delivering zero administration, automatic scaling, pay-per-use pricing, and built-in availability across diverse services.
Please check out AWS pricing page for latest price for any service
Explore ways to create lambda and serverless resources: the console, infrastructure as code (CloudFormation, SAM, CDK), and the AWS CLI, plus testing in Cloud9 and DevOps deployment.
Explore AWS IAM concepts, including policies, groups, users, and roles, and learn to assign access with S3, lambda, and dynamo across scenarios of group permissions and service roles.
Master the concept of an api through real world examples like restaurant orders, bank balances, and flight deals, understanding api as a clearly defined interface for inter-component communication.
Explore how an API gateway sits between the requester and backend, routing requests to Lambda or databases and enabling authentication, tracing, caching, and stage deployments.
Create and test a post API using AWS serverless lambda, accepting a country in the request body and returning hello from country, with Postman testing and development-stage deployment.
Install Postman, create an account, and learn basic features to call our API gateway using get and post requests, verifying responses like hello world and hello from France.
Explore api gateway components, including method request, integration request, and integration response, and see how the public interface maps status codes, headers, and payload through stages and resources.
Explore how query parameters pass input in get requests, compare get and post data handling, and learn security considerations when using API gateway.
Link to Apache Velocity User Guide: http://velocity.apache.org/engine/1.7/user-guide.html
Demonstrate cross account calls by routing an API gateway integration to a lambda function in another account, configure permissions, test invocation, and validate security policies.
Explore lambda versioning and aliases to split API traffic, enabling blue-green deployment, with a hands-on demo showing traffic distribution across versions and an API gateway setup.
Learn how to split API traffic between Lambda versions using an alias in API Gateway by configuring a stage variable, enabling 50/50 routing to different Lambda versions.
Explore canary deployment in API gateway by gradually routing traffic between base and modified lambda versions, starting at 50 percent and promoting to 100 percent after success.
Explore three API Gateway endpoint types—edge optimized, regional, and private—and learn how each design impacts latency, uses edge locations, and restricts access to a VPC.
Learn to create an API in API Gateway, view and change endpoint type after creation using the gear icon or AWS CLI, and note private to edge-optimized can't be changed.
Discover how Swagger describes api structure for machine reading and api as code. Export Swagger from api gateway, generate boilerplate docs, and enable multi-environment reuse via open api standards.
Explore exporting vanilla swagger, API Gateway extensions, and Postman extensions, and see how to import into API Gateway and deploy with Lambda integration.
Discover how cors governs cross-origin requests, distinguish simple vs non-simple, and implement preflight checks and access-control headers in api gateway and lambda to control origins.
Compare REST API and HTTP API, highlighting when HTTP API suits Lambda backends for lower latency and cost, and when REST API is needed for broader AWS service integration.
Explore how to create an http api with lambda integration and proxy mode. Learn get and post methods, default stage deployment, and hello world responses via api gateway.
Note that you can store public cert for free in ACM. $400/month is charged when you start storing private CA.
Purchase a domain in Route 53, issue an ACM certificate via DNS validation, and map an API Gateway custom domain to a Lambda-backed API.
We look at how Lambda scales under the hood. We also take a look at how do you set limit on Concurrency. Provisioned Concurrency, announced re:invent 2019 is also included!
Master how lambda environment variables pass key-value pairs to your function without code changes. They enable dev, stage, and production configurations by reading from the environment, with encryption options.
Discover how lambda environments ship with prepackaged libraries, and install external dependencies like requests via pip or npm so code imports succeed.
Demonstrates an external dependency problem in AWS Lambda by calling a bitcoin price API and showing unable to import module named requests error, then packaging requests with the Lambda code.
Use Visual Studio Code with the AWS toolkit to connect to your account, download and test a lambda, install the requests module inside its folder, and upload the updated code.
Learn how to solve external dependencies for lambda by using Cloud9 to install the requests library inside the lambda package, upload the code, and test the bitcoin price.
Learn how lambda container images enable deploying code and dependencies as a container in elastic container registry, then run your lambda from that image with faster starts.
Discover how lambda layers let you share validation logic across lambda functions, preventing duplication of 10-digit account checks and simplifying deployment with versioned layers.
Demonstrates creating a lambda layer to host a validated account function, packaging as a Python zip, and attaching the layer to create account and get balance lambdas.
Explore how AWS EFS integrates with Lambda to share a durable, elastic file system across multiple functions. See use cases for large files and persistent data.
demonstrates integrating an elastic file system with Lambda, exposing an HTTP API to add, get, and delete messages, while sharing the same FS with Cloud9 via a VPC mount.
Explore the serverless repository to browse lambda code samples, deploy lambdas with a single click, and publish your improvements back to the community.
Code a real-world boto3 workflow in aws lambda that triggers on ec2 state changes via cloudwatch, reads instance tags, stops the instance, and notifies the employee via ses.
Explore how AWS SNS and SQS enable scalable, secure messaging, covering standard and FIFO queues, message filtering, fan-out architectures, dead-letter queues, visibility timeout, and Lambda integration.
Learn how to use SNS message filtering to route loan type messages (home loan, car loan) to specific subscriptions and lambda or email actions, improving cost efficiency.
Explore how EventBridge extends the EventBus paradigm by ingesting SaaS events and routing them to AWS services, enabling event-driven architectures with less code.
Learn to publish to a custom event bus, apply content filtering rules on the payload, and route events to targeted lambdas based on payload fields using EventBridge.
Compare SNS, SQS, and EventBridge across push and pull semantics, routing, schema, replay, and integrations to guide design decisions for real-world serverless apps.
This lecture introduces EventBridge pipes, enabling you to filter and enrich messages from sources like SQS, DynamoDB streams, and Kafka, then route to Lambda or API destinations.
Discover how AWS Step Functions coordinate multiple lambdas via a visual state machine to control flow, looping, and error handling. Learn how tasks and transitions form a plug-and-play, visual workflow.
Compare standard and express AWS step functions, highlighting long-running versus high-volume, low-latency workflows, pricing, execution semantics, auditability, and how to choose and implement them.
Explore the upgraded AWS Step Functions console with templates, sample projects, and one-click step machines, including sequential Lambda calls, parallel and nested workflows, and input-output behavior.
Experience the new visual workflow designer for AWS Step Functions, which lets you design your workflow visually with drag-and-drop actions, lambda invocations, conditionals, and parallel flows without writing JSON.
Explore nested step functions and how to reuse a common workflow across multiple functions, and learn when to synchronize calls using dot sync to ensure dependent steps wait for outputs.
Explore nested step functions in AWS serverless by wiring a synchronized validate account lambda, handling 200 and 400 outputs, and securing access with IAM roles and CloudWatch events.
Explore how AWS Step Functions integrates with services like AWS Batch, using request‑response, sync, and wait-for-callback with task tokens, and activity workers to simplify real-world serverless workflows.
Learn to log and monitor AWS lambda with CloudWatch logs, metrics, and insights. Explore viewing logs, exporting data to S3, streaming to Elasticsearch, and setting alarms for duration and concurrency.
Learn to monitor your api using cloudwatch metrics by inspecting api calls latency, integration latency, and data access on the api gateway dashboard and in cloudwatch.
Explore and filter cloud trail logs in the console, create trails to dump events to an S3 bucket, and route logs to CloudWatch for Lambda and API activity.
Differentiate cloud watch logging from cloud trail logging for api gateway, and summarize execution and access logging with key logs like request payload and who called the API.
Enable CloudWatch logging for API Gateway by creating a push-logs role. Configure execution and access logs for a chosen stage and review requests, responses, and payloads.
Brand new feature announced at AWS Re:Invent 2018, CloudWatch Logs Insight, which makes it possible to query logs easily to gather actionable information such as over provisioned lambda, latency information etc.
Learn how to enable x-ray tracing on api gateway, and read its detailed timing across stages, api calls, and lambda execution, using cloud watch logs and viewable traces for troubleshooting.
Enable basic tracing for a Lambda function using AWS X-Ray in the console. Test function invocations, then view traces and service maps to inspect timing and the flow of calls.
Explore how lambda advanced tracing uses x-ray subsegments to print per-subsegment timings, annotate code, and visualize detailed execution graphs for a real-world news sentiment workflow.
Learn how the AWS CLI powers serverless workflows by managing S3 buckets and Lambda functions from the command line, with setup steps, policies, and practical examples.
Explore two AWS CLI workflows for lambda development: fresh instance with pip versus Cloud9 bash, highlighting automatic 30-minute idle shutdown and cost savings.
Set up the AWS CLI on an EC2 instance, install pip and the CLI on Red Hat Enterprise Linux, then verify Lambda access by listing and invoking functions.
Create a Python lambda from EC2 using the AWS CLI by packaging code and dependencies (like requests) into a zip, then deploy with a basic execution role.
Explore the easy way to use the AWS CLI via Cloud9 to create and package a lambda function, install dependencies, and zip the deployment bundle.
Learn to invoke an AWS Lambda function from the AWS CLI by specifying the function name, output file, and optional payload, illustrated with a hello world example in Cloud9.
Learn to update a lambda function from the AWS CLI using Cloud9, by packaging code into a zip, specifying the function name, and applying update-function-code to reflect changes.
Explore cloud shell as a browser-based AWS CLI environment with up to 1 GB storage, suitable for running simple AWS commands like listing S3 buckets and Lambda functions.
Create a Cloud9 environment in AWS, explore its three panes, and use the built-in AWS CLI and toolkit to download, view, and manage Lambda functions and other resources.
Lambda security is essential for real-world projects. Let's dive into it!!
Secure your APIs by enforcing access controls on the API gateway to prevent anonymous calls. Use API keys, usage plans, secrets manager, Lambda authorizer, and API gateway resource policies.
Explore how to configure an API key in AWS API gateway using usage plans, deploying to stages, and enforcing key-based access with the X API key header.
Secure your API using IAM credentials in API Gateway; callers must provide access key and secret access key with an IAM policy, then deploy and test with Postman.
Explore secure API access with Cognito user pools, app clients, and token-based authorizers for API gateway and lambda, comparing to api keys and highlighting token rotation and validation.
Discover how to create a Cognito identity pool in the console, assign roles, and obtain credentials, while understanding trusted authentication providers and pool and app client IDs.
Watch a hands-on demonstration of AWS Secrets Manager, creating and rotating secrets including database credentials and generic key-value secrets, and see Python code to fetch secrets by name and region.
Explore securing an API by applying and testing an AWS Lambda resource policy in AWS, showing how to grant and remove permissions for API gateway calls across accounts.
Configure api gateway with a lambda authorizer using Auth0 as the identity provider, validating the token and mirroring the Cognito flow with two lambdas.
Apply api gateway resource policy to restrict which api methods invoke Lambda, using ip address conditions, principals, and deny or allow rules, including private traffic via vpc.
Demonstrates an API gateway resource policy that restricts access by IP address ranges, deploys the policy, and verifies forbidden responses when requests do not match.
Amazon Inspector now supports lambda scanning, delivering automated vulnerability assessments for lambda functions and layers. Enable scanning in account management, review findings, and trigger remediations via event bridge or sns.
Compare SQL and NoSQL databases by examining relational database management systems with predefined schemas versus schema-flexible data. Understand how acid properties and horizontal scaling influence real-world choices.
Examine lambda concurrency versus traditional database limits, and how auto scaling with dynamo db or aurora solderless prevents bottlenecks by expanding read write capacity.
Create a DynamoDB table with a partition key as the primary key, insert items with nested attributes, and explore basic metrics in the console.
Delete items from a DynamoDB table using a lambda function and a Python script, deleting by personId and validating the result through a quick table refresh.
Explore DynamoDB secondary indexes, global and local, and learn to query by non-primary attributes like genre and album title. Design indexes wisely to balance performance with maintenance costs.
Explore global tables with two-way replication across regions for low-latency reads, automatic traffic shift if a region fails, and seamless global scaling at a modest extra cost.
Explain DynamoDB read consistency and write capacity, comparing eventually and strongly consistent reads. Show how to calculate read and write capacity and configure auto scaling with target utilization.
Demonstrate enabling strongly consistent reads in DynamoDB by using a Lambda to fetch a person by id from a people table and return John's information.
Brand new feature announced at AWS Re:Invent 2018, DynamoDB On Demand, making DynamoDB even more useful for Serverless applications.
Learn how DynamoDB streams capture near real-time data modification events for inserts, updates, and deletes. Use Lambda to react, enabling cross-table updates, archiving transactions, and data replication.
Enable DynamoDB encryption in the AWS console, compare the default key with CMKs and IAM access controls, and note that upcoming content covers encrypting and decrypting data with CMKs.
Learn to encrypt and decrypt data in lambda using a CMK. Grant role-based access to the CMK and validate end-to-end encryption in your serverless app.
Explore how Aurora Serverless scales with traffic and pauses compute to pay only for storage when idle. The demo covers creating Aurora Serverless, setting min capacity, and connecting via endpoint.
Code: https://github.com/saha-rajdeep/genai/blob/main/Bedrock_with_Lambda.py
Create Layer: https://repost.aws/knowledge-center/lambda-python-runtime-errors
Explore aws serverless project that uses a lambda to fetch news api, analyze sentiment with Amazon Comprehend, store results in DynamoDB, and serve positive, negative, or neutral news via api.
Build a real life serverless app by calling the News API, securing the API key, and using a Python AWS Lambda with Amazon Comprehend to store sentiment in DynamoDB.
Deploy and test a lambda-based news app by installing the requests dependency, creating test events to insert, fetch sentiment, and delete news, and scheduling via CloudWatch events.
Learn to create a CloudWatch scheduled rule that triggers a Lambda every three minutes, wiring it to insert or delete items in DynamoDB and monitor invocations.
Recap of part one shows how Cloud9 supports editing, testing, and deployment. It covers external dependencies like requests and how Dynamo, Lamda, CloudWatch, and Comprehend connect services.
Build a post api using lambda to fetch news by sentiment from a DynamoDB table named Neals, returning the latest 10 items in descending timestamp order.
Create and deploy an API in API Gateway, connect a post method to a Lambda function, test with Postman, and apply API key security on a dev stage.
Secure your API by creating and deploying an API key, associating stages with a plan, and validating requests in Postman to ensure authorized access in production.
Discover how lambda easily integrates with diverse services with minimal code, backed by documentation, while securing with api gateway and cognito user pools, and simplifying deployment, testing, and auto scaling.
[Oct 2023] Added Gen AI Demo with Lambda and Amazon Bedrock
[Dec 2022] Added Re:Invent 2022 Updates
[Nov 2021] Updated with all newest features - Lambda Container Image, re:Invent 2020 Changes, Step Function Visual Workflow, EFS Lambda, RDS Proxy, Custom Domain, HTTP API with Demos, EventBridge Deep Dive
Serverless computing is the future of Cloud Computing. You can deploy AWS Lambda functions in Amazon Web Services that infinitely scale without managing any servers! Serverless is the tool that you need to grow your career.
How is this course different?
This course will teach you the ENTIRE Serverless ecosystem. We will start with:
Understand, Develop and Deploy AWS Lambda
Create REST APIs using Lambda and API Gateway
Learn DevOps and entire AWS CI/CD Services (CodeCommit, CodeBuild, CodeDeploy, Code Pipeline, CodeStar)
AWS SAM (Serverless Application Model)
Serverless Vs Container
The Serverless Framework
Serverless Best Practices and Architecture Patterns
But it doesn't stop there. We will learn:
Debugging and Pair Programming using AWS Cloud9
Tracing using X-Ray, CloudWatch Log Insights to gain performance insights on our Lambdas and APIs
Lambda Layers
Ways to secure our design with in-depth lectures and demo. This includes:
API Key and Usage Plans
AWS Cognito User Pools
AWS Secrets Manager
Lambda Resource Policies
Lambda Authorizer (Custom Authorizer)
API Gateway Resource Policies
Encrypting data using CMK (Customer Managed Keys)
And more!
Other relevant AWS Services such as Step Functions, Comprehend etc
Databases that complement Serverless - DynamoDB and Serverless Aurora
A real world news sentiment analysis project
Limitations of Serverless (Yes, there are indeed some!)
And much much more!
About the instructor
Rajdeep Saha is a Principal Solutions Architect at AWS. He has migrated and designed numerous mission-critical apps in the cloud, handling millions of transactions. Rajdeep has presented at the biggest stages, such as AWS Re:Invent, AWS Summits, and Kubecon. He has authored multiple bestselling courses and mentored students successfully to cloud jobs, including FAANG companies. Rajdeep also runs a successful YouTube channel named "Cloud With Raj" with over 100K+ subscribers. He has over 250,000+ followers across the globe. Rajdeep takes pride in teaching real-world solutions and learnings beyond just theoretical information. You are in capable hands! All opinions are Rajdeep's own.
This is the course that could take your career to next level. Serverless is the way of future and you can get started today and become an expert.
Let's have some fun and build some awesome stuff in cloud together!