New serverless pattern - strands-agentcore-lambda#3102
Conversation
|
Hello @humem001, Please fix
Suggested improvements
|
|
Hi @marcojahn thanks for feedback. AWS Bedrock → Amazon Bedrock and bare Cognito → Amazon Cognito throughout README CloudWatchLogsFullAccess managed policy replaced with scoped inline policy (logs:CreateLogGroup, logs:CreateLogStream, logs:PutLogEvents) on AgentCore log group only Gateway URL cache moved from instance-level (self._gateway_url) to module-level (_gateway_url_cache) in agent_processor.py — now persists across Lambda invocations in warm containers Hardcoded us-east-1 in create_cognito_user.py and test_e2e_flow.py replaced with os.environ.get("AWS_DEFAULT_REGION") or os.environ.get("AWS_REGION") or "us-east-1" All 9 loose root scripts moved to scripts/ directory Added note in README explaining why raw CloudFormation is used instead of SAM (AgentCore resources not supported by SAM) Ready for re-review. |
Serverless AI agent pattern using Strands Agents SDK, AWS Bedrock, and AgentCore Gateway with Lambda interceptors for multi-tenant JWT authentication and tool execution via MCP protocol.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.