Search⌘ K

Process Amazon S3 Events with AWS Lambda

Takes 45 mins

AWS Lambda is a serverless, event-driven compute service that lets you run code for virtually any type of application or back-end service without provisioning or managing servers.

image

In this Cloud Lab, you’ll learn to create a Lambda function that reads HTML files that are uploaded into an S3 bucket, removes all HTML tags from the files, and uploads the processed files as text files to the same bucket.

Lab tasks

  • Create an S3 Bucket
  • Create an Execution Role
  • Create a Lambda Function
  • Add and Test an S3 Trigger
  • Clean Up

Architecture diagram

The following is the high-level architecture diagram of how to process S3 events using the Lambda function:

image