[{"data":1,"prerenderedAt":96},["ShallowReactive",2],{"pattern-strands-agentcore-smithy":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":36,"level":37,"meta":38,"patternArch":39,"resources":68,"s3URL":6,"services":6,"stem":90,"testing":91,"videoId":6,"__hash__":95},"patterns\u002Fpatterns\u002Fstrands-agentcore-smithy.json","Strands Agent on AWS Lambda with Amazon Bedrock AgentCore Smithy Amazon Bedrock Target",null,{"text":8},[9,10],"aws cloudformation delete-stack --stack-name agentcore-smithy-bedrock --region us-east-1","aws s3 rb s3:\u002F\u002Fagentcore-smithy-bedrock-smithy-models --force --region us-east-1",[12],"content\u002Fcontributors\u002Fmike-hume.json",{"text":14},[15],"bash scripts\u002Fdeploy.sh","Strands SDK agent on AWS Lambda calls Amazon Bedrock Runtime via Amazon Bedrock AgentCore Gateway using a Smithy model target, with Cognito JWT auth and IAM role signing.","json","AWS SAM",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fstrands-agentcore-smithy","serverless-patterns\u002Fstrands-agentcore-smithy","strands-agentcore-smithy","infrastructure\u002Ftemplate.yaml",{"headline":26,"text":27},"How it works",[28,29,30,31,32,33,34,35],"The user authenticates with Amazon Cognito and receives a JWT token.","The JWT is passed to an AWS Lambda function which uses the Strands Agents SDK to create an AI agent backed by Amazon Bedrock (Claude Sonnet 5 cross-region inference profile).","The Strands Agent connects to an Amazon Bedrock AgentCore Gateway MCP endpoint, dynamically discovering available Amazon Bedrock Runtime operations via the MCP tools\u002Flist protocol.","The Amazon Bedrock AgentCore Gateway validates the JWT token using a CUSTOM_JWT authorizer backed by Amazon Cognito, then routes MCP tool calls to the Smithy model target.","The gateway target uses the official Amazon Bedrock Runtime Smithy model (loaded from S3) to expose Amazon Bedrock Runtime operations as MCP tools.","The gateway uses its IAM execution role (GATEWAY_IAM_ROLE) to sign requests to Amazon Bedrock Runtime — no API keys or Secrets Manager secrets are required.","The outer agent (Claude Sonnet 5) calls the Converse tool, which invokes Claude Haiku 4.5 as the inner model to generate the response.","The Strands SDK handles the full agentic loop: tool discovery, Claude tool selection, MCP tool execution, and response formatting — all in a single agent() call.","Python","300",{},{"icon1":40,"icon2":45,"icon3":50,"icon4":54,"line1":58,"line2":62,"line3":65},{"x":41,"y":42,"service":43,"label":44},15,70,"lambda","AWS Lambda",{"x":46,"y":47,"service":48,"label":49},40,30,"cognito","Amazon Cognito",{"x":51,"y":42,"service":52,"label":53},50,"bedrock-agentcore","Amazon Bedrock AgentCore Gateway",{"x":55,"y":42,"service":56,"label":57},85,"bedrock","Amazon Bedrock",{"from":59,"to":60,"label":61},"icon1","icon2","JWT",{"from":59,"to":63,"label":64},"icon3","MCP request",{"from":63,"to":66,"label":67},"icon4","Converse API",{"bullets":69},[70,73,75,78,81,84,87],{"text":71,"link":72},"Strands Agents SDK","https:\u002F\u002Fgithub.com\u002Fstrands-agents\u002Fsdk-python",{"text":53,"link":74},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock-agentcore\u002Flatest\u002Fdevguide\u002Fgateway.html",{"text":76,"link":77},"AgentCore Gateway Smithy Model Target","https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock-agentcore\u002Flatest\u002Fdevguide\u002Fgateway-building-smithy-targets.html",{"text":79,"link":80},"Model Context Protocol (MCP)","https:\u002F\u002Fmodelcontextprotocol.io\u002F",{"text":82,"link":83},"Amazon Cognito JWT Authentication","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcognito\u002Flatest\u002Fdeveloperguide\u002Famazon-cognito-user-pools-using-tokens-verifying-a-jwt.html",{"text":85,"link":86},"Amazon Bedrock Converse API","https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002Fuserguide\u002Fconversation-inference.html",{"text":88,"link":89},"Amazon Bedrock Cross-Region Inference","https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002Fuserguide\u002Finference-profiles-support.html","patterns\u002Fstrands-agentcore-smithy",{"text":92},[93,94],".\u002Fscripts\u002Ftest.sh",".\u002Fscripts\u002Ftest.sh 'Ask Haiku to write a short poem about the Beatles'","t9oMrh7mxouxZGiVRQOPFf1YRLxv_nfTQpWnvPVG25o",1788278262619]