Generate video with Amazon Bedrock Nova Reel and AWS Step Functions

Amazon API Gateway REST API → AWS Step Functions → Amazon S3 → Amazon SNS

Orchestrate asynchronous video generation with AWS Step Functions and Amazon Bedrock Nova Reel.

This project aims to build an integration between Amazon API Gateway, AWS Step Functions, AWS Lambda, Amazon Bedrock, Amazon S3, and Amazon SNS
The user sends a prompt to an API Gateway REST API endpoint. Then, API Gateway invokes a Step Functions State Machine which orchestrates generating the video.
A Lambda function invokes Amazon Bedrock Reel to produce the video and uploads the result to an S3 Bucket. Then, the function creates a pre-signed URL for the video, and publishes a message with the link to the SNS topic.
This asynchronous approach optimizes Lambda function run time
To ensure compatibility with the newly released Nova Reel model in Bedrock, the latest version of Boto3, supporting Amazon Bedrock Nova models and asynchronous inference API calls, is utilized in the Lambda deployment zip.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/apigw-stepfunctions-lambda-bedrock-s3-sns

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk delete.

Created by:

Sahithi Ginjupalli

Sahithi Ginjupalli

Sahithi Ginjupalli is a Cloud Engineer with a passion for continuous learning and in-depth exploration of her field. She helps optimize client applications through strategic implementation of AWS services, enhancing their efficiency and performance.

Follow on LinkedIn