Example serverless apps - Amazon Lambda
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Example serverless apps

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 Amazon Web Services Management Console, or to use the Amazon Serverless Application Model to deploy the resources using IaC. Follow the console intructions to learn more about configuring the individual Amazon resources for each app, or use to Amazon 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 severless 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.