
Weekend Productivity Challenge : CloudSketchAI
Generate secure AWS cloud architectures from natural language using Amazon Bedrock
Weekend Productivity Challenge: CloudSketch AI
#productivity
Vision
Cloud architecture design is often one of the most time-consuming parts of planning an application. Developers must decide which AWS services to use, how those services connect, and what security best practices should be followed before writing any code.
CloudSketch AI was created to simplify this process.
The idea behind the project is simple: instead of spending time researching documentation or manually drawing architecture diagrams, users can describe their application in plain English and instantly receive a complete AWS architecture proposal.
The application generates:
A high-level architecture overview
Recommended AWS services
Security best practices
A Mermaid architecture diagram for visualization
Whether someone is building a food delivery platform, hospital management system, e-commerce website, or IoT application, CloudSketch AI provides a strong starting point within seconds.
The goal is not to replace solution architects but to help developers prototype ideas faster and improve productivity during the planning phase.
What the App Does
CloudSketch AI accepts a natural language prompt from the user.
For example:
Build a food delivery application with login, payments and notifications.
The request is sent to an AWS Lambda function, which invokes Amazon Bedrock using the Amazon Nova Lite foundation model.
The AI analyzes the application requirements and returns structured JSON containing:
Architecture overview
AWS services
Security recommendations
Mermaid diagram
The frontend then displays this information in a clean and easy-to-read interface while rendering the Mermaid diagram into a visual architecture.
This allows users to quickly understand how different AWS services fit together without manually designing the architecture.
How I Built It
I wanted to build something that could be completed within a weekend while still showcasing the capabilities of Amazon Bedrock.
Instead of creating a large application with authentication, databases, and multiple backend services, I focused on building a lightweight serverless architecture.
The frontend was developed using HTML, CSS, and JavaScript to keep the interface simple and responsive.
For the backend, I used AWS Lambda with Python. The Lambda function receives user prompts and calls Amazon Bedrock using the boto3 SDK.
One of the important design decisions was returning structured JSON rather than plain text. This made it much easier for the frontend to display different sections independently and render the Mermaid diagram dynamically.
During development, I encountered several challenges.
Initially, the frontend couldn't communicate with the Lambda Function URL because of incorrect CORS configuration. The response contained duplicate Access-Control-Allow-Origin headers, which browsers rejected.
Another challenge involved parsing the AI response correctly. At first, the frontend expected a nested JSON string, but after modifying the Lambda function to return a proper JSON object, the issue was resolved.
These debugging sessions helped me better understand how browser security policies, Lambda Function URLs, and API responses work together.
AWS Services Used
CloudSketch AI uses a fully serverless architecture powered entirely by AWS.
Amazon Bedrock
Amazon Bedrock powers the AI capabilities of the application using the Amazon Nova Lite foundation model. It analyzes user prompts and generates architecture recommendations.
AWS Lambda
Lambda acts as the backend API. It receives requests from the frontend, invokes Amazon Bedrock, and returns structured JSON responses.
Lambda Function URL
Instead of using API Gateway, I used a Lambda Function URL to simplify deployment and reduce the amount of infrastructure required.
Amazon Nova Lite
Nova Lite generates:
AWS architecture overview
AWS service recommendations
Security best practices
Mermaid architecture diagram
Architecture Overview
User
│
▼
HTML / CSS / JavaScript
│
▼
Lambda Function URL
│
▼
AWS Lambda
│
▼
Amazon Bedrock
│
▼
Amazon Nova Lite
│
▼
JSON Response
│
▼
Mermaid Diagram + UI
This architecture is completely serverless, making it simple to deploy while minimizing operational overhead.
Screenshots


What I Learned
This project gave me hands-on experience with Amazon Bedrock and serverless AI application development.
Some of the biggest lessons included:
Invoking foundation models using Amazon Bedrock
Building APIs with AWS Lambda
Configuring Lambda Function URLs
Managing CORS for browser applications
Designing structured AI responses
Rendering Mermaid diagrams dynamically
Building lightweight serverless applications
I also learned that keeping the architecture simple often results in a more reliable and maintainable solution.
Future Improvements
There are several features I would like to add in future versions:
Architecture editing
Cost estimation for generated architectures
CloudFormation template generation
Export diagrams as PDF
Support for Azure and Google Cloud
Authentication and project history
These additions would make CloudSketch AI even more useful for developers and solution architects.
GitHub Repository:
https://github.com/Jayani-N/CloudSketchAI
Live Demo:
https://drive.google.com/file/d/1TdarP8lfl242S4KSntdzSwnu5l-l7be1/view?usp=sharing
~jayani n Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article