
Build Serverless GenAI Apps Faster with Amazon Q Developer CLI Agent
Discover how Amazon Q Developer CLI Agent revolutionizes cloud development by building a complete serverless GenAI application in minutes instead of days. With just a single prompt, Amazon Q Developer CLI Agent generated all necessary infrastructure code in TypeScript, created a Python Lambda function, and seamlessly integrated with Claude 3 Haiku on Amazon Bedrock. This step-by-step walkthrough demonstrates the entire process from concept to deployment, showcasing how developers can now focus on innovation
- Understood the architecture I wanted to create
- Generated all the necessary code files
- Structured the project appropriately
- Implemented the integration with AWS Bedrock
- Created the CDK infrastructure in TypeScript
- Wrote the Lambda function in Python
- Guided me through deployment
- Created comprehensive documentation
- Infrastructure code (CDK TypeScript in
/lib
) - Lambda function code (Python in
/lambda
) - Client application (HTML/JS in
/client
) - Documentation (diagrams and README)
- Identified the issue (Docker not running needed for bundling)
- Proposed a solution (modify the CDK stack to use a simpler deployment approach)
- Made the necessary code changes
- Created a detailed draw.io diagram file
- Generated ASCII art representations for text-based documentation
- Updated the README.md with the architecture diagram
- Created an HTML viewer for the architecture when I exported the diagram as a JPEG

- Create a complete serverless GenAI application with AWS CDK
- Integrate with Amazon Bedrock's Claude 3 Haiku model
- Successfully deploy all resources to AWS
- Test the functionality
- Create comprehensive architecture documentation
- Understanding Requirements: It translated my high-level description into a complete application architecture
- Full-Stack Development: It generated both infrastructure code and application code
- Problem Solving: It identified and resolved deployment issues
- AWS Knowledge: It executed exactly the right AWS commands for deployment and testing
- Documentation Skills: It created comprehensive architecture diagrams and documentation
Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.