|
| 1 | +{ |
| 2 | + "title": "Amazon S3 to AWS Lambda to Amazon Bedrock AgentCore.", |
| 3 | + "description": "This pattern creates an Amazon S3 bucket, which triggers an AWS Lambda function, which invokes an agent in Amazon Bedrock AgentCore.", |
| 4 | + "language": "Python", |
| 5 | + "level": "200", |
| 6 | + "framework": "Terraform", |
| 7 | + "services": { |
| 8 | + "from": "s3", |
| 9 | + "to": "lambda" |
| 10 | + }, |
| 11 | + "introBox": { |
| 12 | + "headline": "How it works", |
| 13 | + "text": [ |
| 14 | + "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.", |
| 15 | + "The lambda function will invoke the agent and pass a uri for the s3 file.", |
| 16 | + "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.", |
| 17 | + "The Lambda function will write the metadata to the S3 output bucket." |
| 18 | + ] |
| 19 | + }, |
| 20 | + "gitHub": { |
| 21 | + "template": { |
| 22 | + "repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/s3-lambda-agentcore", |
| 23 | + "templateURL": "serverless-patterns/s3-lambda-agentcore", |
| 24 | + "projectFolder": "s3-lambda-agentcore", |
| 25 | + "templateFile": "deploy.tf" |
| 26 | + } |
| 27 | + }, |
| 28 | + "resources": { |
| 29 | + "bullets": [ |
| 30 | + { |
| 31 | + "text": "Trigger AWS Lambda with Amazon S3", |
| 32 | + "link": "https://docs.aws.amazon.com/lambda/latest/dg/with-s3.html" |
| 33 | + }, |
| 34 | + { |
| 35 | + "text": "Invoke an AgentCore Runtime agent", |
| 36 | + "link": "https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-invoke-agent.html" |
| 37 | + } |
| 38 | + ] |
| 39 | + }, |
| 40 | + "deploy": { |
| 41 | + "text": [ |
| 42 | + "terraform apply" |
| 43 | + ] |
| 44 | + }, |
| 45 | + "testing": { |
| 46 | + "text": [ |
| 47 | + "See the GitHub repo for detailed testing instructions." |
| 48 | + ] |
| 49 | + }, |
| 50 | + "cleanup": { |
| 51 | + "text": [ |
| 52 | + "terraform destroy" |
| 53 | + ] |
| 54 | + }, |
| 55 | + "authors": [ |
| 56 | + { |
| 57 | + "name": "Geoffrey Burdett", |
| 58 | + "bio": "Sr. Solutions Architect at AWS", |
| 59 | + "image": "http://www.geoffreyburdett.com.s3-website-us-east-1.amazonaws.com/images/headshot.jpeg", |
| 60 | + "linkedin": "geoffreyburdett" |
| 61 | + } |
| 62 | + ], |
| 63 | + "patternArch": { |
| 64 | + "icon1": { |
| 65 | + "x": 20, |
| 66 | + "y": 50, |
| 67 | + "service": "s3", |
| 68 | + "label": "Amazon S3" |
| 69 | + }, |
| 70 | + "icon2": { |
| 71 | + "x": 50, |
| 72 | + "y": 50, |
| 73 | + "service": "lambda", |
| 74 | + "label": "AWS Lambda" |
| 75 | + }, |
| 76 | + "icon3": { |
| 77 | + "x": 80, |
| 78 | + "y": 50, |
| 79 | + "service": "bedrock", |
| 80 | + "label": "Amazon Bedrock AgentCore" |
| 81 | + }, |
| 82 | + "line1": { |
| 83 | + "from": "icon1", |
| 84 | + "to": "icon2" |
| 85 | + }, |
| 86 | + "line2": { |
| 87 | + "from": "icon2", |
| 88 | + "to": "icon3" |
| 89 | + } |
| 90 | + } |
| 91 | +} |
0 commit comments