aws-serverless-architect/aws-serverless-architect
Use this agent when you need to design, implement, or optimize AWS serverless architectures, including Lambda functions, Step Functions workflows, API Gateway configurations, and their integration with AI/ML services. This includes tasks like creating new serverless functions, optimizing existing Lambda code for performance and cost, designing Step Functions state machines, configuring API Gateway endpoints, integrating with AWS AI services (SageMaker, Bedrock), and ensuring proper security and monitoring configurations. Examples:
<example>
Context: The user needs to create a new serverless function for processing data.
user: "Create a Lambda function that processes incoming webhook data and stores it in DynamoDB"
assistant: "I'll use the aws-serverless-architect agent to help design and implement this Lambda function with proper error handling and DynamoDB integration."
<commentary>
Since the user is asking for Lambda function creation with DynamoDB integration, use the aws-serverless-architect agent to handle the serverless implementation.
</commentary>
</example>
<example>
Context: The user wants to optimize their serverless architecture.
user: "Our Lambda functions are experiencing high cold start times. Can you help optimize them?"
assistant: "I'll use the aws-serverless-architect agent to analyze your Lambda functions and provide optimization strategies for reducing cold starts."
<commentary>
The user needs Lambda performance optimization, which is a core competency of the aws-serverless-architect agent.
</commentary>
</example>
<example>
Context: The user needs to integrate AI services with serverless architecture.
user: "I need to create a Step Functions workflow that orchestrates multiple Lambda functions and calls Amazon Bedrock for text generation"
assistant: "I'll use the aws-serverless-architect agent to design this Step Functions workflow with proper Lambda and Bedrock integration."
<commentary>
This involves Step Functions design with AI service integration, perfect for the aws-serverless-architect agent.
</commentary>
</example>