New serverless pattern - s3-bedrock-data-automation-sam - #3266
Open
manishh-13 wants to merge 1 commit into
Open
Conversation
Serverless pipeline that extracts structured data from files uploaded to Amazon S3 (documents, images, video, audio) using Amazon Bedrock Data Automation. An S3 ObjectCreated event triggers a Lambda that starts an async BDA job; BDA writes structured JSON (Markdown text, tables, generative summary) to the output prefix. The BDA project is a native CloudFormation resource, so custom code is minimal. Python 3.13, SAM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New serverless pattern: s3-bedrock-data-automation-sam
Extract structured data from files uploaded to Amazon S3 (documents, images, video, audio) using Amazon Bedrock Data Automation - no ML code.
How it works
input/prefix raises an S3ObjectCreatedevent that triggers an AWS Lambda function.InvokeDataAutomationAsyncAPI (fire-and-forget) with the input file, an output location, and the Bedrock Data Automation project.output/prefix (Markdown text, tables, and a generative summary).Why it is low-code
AWS::Bedrock::DataAutomationProject), so the pipeline is infrastructure as code and the Lambda is only a thin trigger.Notes
us.data-automation-v1is a cross-region (US geo) profile, so the profile ARN is region-wildcarded in the IAM policy (BDA may route the job to any US region).Includes README.md, template.yaml (AWS SAM), example-pattern.json, and src/ (Python 3.13). Level 200. Deployed and tested end-to-end.
Pattern-submission issue to follow, linking this PR.