Amazon S3 to AWS Lambda to Amazon Bedrock AgentCore.

Amazon S3 → AWS Lambda → Amazon Bedrock AgentCore

This pattern creates an Amazon S3 bucket, which triggers an AWS Lambda function, which invokes an agent in Amazon Bedrock AgentCore.

S3 will invoke the Lambda function when an object is created or updated. It will pass metadata about the new object in the event argument of the Lambda invocation.
The Lambda function will invoke the agent and pass a uri for the S3 file.
The agent will categorize the file as architecture, runbook, or other and identify some metadata. Then it will send the results back to the Lambda function as JSON.
The Lambda function will write the metadata to the S3 output bucket.

< 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/s3-lambda-agentcore

Deploy

terraform apply


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

terraform destroy

Created by:

Geoffrey Burdett

Geoffrey Burdett

Sr. Solutions Architect at AWS

Follow on LinkedIn