Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New pattern submission: Amazon S3, SQS, Lambda, and Bedrock CDK Python #2248

Merged

Conversation

pdineshbalaaji
Copy link
Contributor

@pdineshbalaaji pdineshbalaaji commented Apr 14, 2024

Issue #, if available:

Description of changes:

This pattern creates an Amazon S3 bucket that sends 'OBJECT_CREATED' events to an SQS queue. These events are then processed by a Lambda function that utilizes Amazon Bedrock to extract the summary or sentiment of the input file. The summary is subsequently stored in a different S3 bucket for consumption.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ellisms
Copy link
Contributor

ellisms commented May 3, 2024

Hi @pdineshbalaaji I'm reviewing this pattern and I'm unable to deploy it due to the following:

"Invalid request provided: Queue visibility timeout: 60 seconds is less than Function timeout: 300 seconds

Can you please update the settings?

Review fix for SQS visibility timeout to meet lambda timeout requirement
@pdineshbalaaji
Copy link
Contributor Author

@ellisms I have updated the visibility timeout settings and validated the changes. Can you please check if its working from your end.

s3-sqs-lambda-bedrock-s3-cdk-python/README.md Outdated Show resolved Hide resolved
s3-sqs-lambda-bedrock-s3-cdk-python/README.md Outdated Show resolved Hide resolved
s3-sqs-lambda-bedrock-s3-cdk-python/README.md Outdated Show resolved Hide resolved
s3-sqs-lambda-bedrock-s3-cdk-python/README.md Show resolved Hide resolved
s3-sqs-lambda-bedrock-s3-cdk-python/README.md Outdated Show resolved Hide resolved
s3-sqs-lambda-bedrock-s3-cdk-python/README.md Outdated Show resolved Hide resolved
s3-sqs-lambda-bedrock-s3-cdk-python/README.md Outdated Show resolved Hide resolved
s3-sqs-lambda-bedrock-s3-cdk-python/README.md Outdated Show resolved Hide resolved
s3-sqs-lambda-bedrock-s3-cdk-python/lambda/index.py Outdated Show resolved Hide resolved
@ellisms
Copy link
Contributor

ellisms commented May 3, 2024

Thanks - it works now. I left feedback and requested some changes.

@pdineshbalaaji
Copy link
Contributor Author

@ellisms I have implemented the requested changes

@ellisms
Copy link
Contributor

ellisms commented May 6, 2024

Thanks! Adding this to the queue for publishing.

@julianwood julianwood merged commit ce33fcf into aws-samples:main May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants