S3 to Step Functions to Lambda to Bedrock

Create a Step Functions workflow to summarize S3 objects using Amazon Bedrock.

This sample project demonstrates how to use an AWS Step Functions state machine to orchestrate S3 object summarization using Amazon Bedrock. The state machine is triggered by new file uploads to an S3 bucket and coordinates the execution of Lambda functions to process and summarize the documents.
The state machine first checks the file type (txt, pdf, or docx) and invokes the appropriate Lambda function to extract the text content. The extracted text is then passed to another Lambda function that leverages Amazon Bedrock's natural language processing capabilities to generate a concise summary.
The generated summary is stored in the original S3 bucket, providing users with a convenient way to access the key information from large documents without having to read through the entire content.

< Back to all workflows

GitHub icon View this workflow on GitHub


Clone repo

git clone https://github.com/aws-samples/step-functions-workflows-collection/tree/main/s3-sfn-lambda-bedrock/cd step-functions-workflows-collection/s3-sfn-lambda-bedrock

Deploy

Deploy the stack: <code>sam build && sam deploy --guided</code>


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete

Created by:

Dave Horne

Dave Horne

Dave is a Sr. Solutions Architect supporting Federal System Integrators at AWS. He is based in Washington, DC and has 15 years of experience building, modernizing and integrating systems for Public Sector customers. Outside of work, Dave enjoys playing with his kids and hiking.

Follow on LinkedIn