Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Example serverless apps

Focus mode
Example serverless apps - AWS Lambda

The following examples provide function code and infrastructure as code (IaC) templates to quickly create and deploy serverless apps that implement some common Lambda uses cases. The examples also include code examples and instructions to test the apps after you deploy them.

For each of the example apps, we provide instructions to either create and configure resources manually using the AWS Management Console, or to use the AWS Serverless Application Model to deploy the resources using IaC. Follow the console instructions to learn more about configuring the individual AWS resources for each app, or use AWS SAM to quickly deploy resources as you would in a production environment.

You can use the provided examples as a basis for your own serverless applications by modifying the provided function code and templates for your own use case.

We're continuing to create new examples, so check back again to find more serverless apps for common Lambda use cases.

Example apps

  • Example serverless file-processing app

    Create a serverless app to automatically perform a file-processing task when an object is uploaded to an Amazon S3 bucket. In this example, when a PDF file is uploaded, the app encrypts the file and saves it to another S3 bucket.

  • Example scheduled cron task app

    Create an app to perform a scheduled task using a cron schedule. In this example, the app performs maintenance on a Amazon DynamoDB table by deleting entries more than 12 months old.

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.