Amazon Q Business to Amazon S3

Amazon Q Business → Amazon S3 → AWS Lambda

Amazon Q Business to build a generative AI application to derive insights from content present in an S3 bucket.

Amazon Q Business Application: Amazon Q Business application created with S3 as the data source.
Amazon S3: S3 bucket that contains documents to be indexed.
AWS Lambda: AWS Lambda function `DataSourceSync` crawls and indexes the content from the S3 bucket. The Amazon Q Business application retrieves data from the indexed content and provides a generated response.

< 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/qbusiness-s3-cdk-python

Deploy

cdk deploy --parameters S3DSBucketName=${YourS3BucketName} --parameters IdentityCenterInstanceArn=${YourIdentityCenterInstanceArn}


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Kruthi Jayasimha Rao

Kruthi Jayasimha Rao

Kruthi is a Partner Solutions Architect with a focus in Generative AI. She provides technical guidance to AWS Partners in following best practices to build secure, resilient, and highly available solutions in the AWS Cloud.

Follow on LinkedIn