๐ค Project 8: AWS CLI Helper (Bedrock AI Agent)
โ
Status: Live and Operational
๐ Project Overview
An intelligent AI-powered assistant that converts natural language requests into AWS CLI commands using Amazon Bedrock. This project demonstrates advanced AI integration, serverless architecture, and safe command generation with built-in safety warnings.
๐๏ธ Architecture Components
๐ S3 Static Website: project-8-cli-copilot
Professional web interface with gradient styling and responsive design
๐ช API Gateway: HTTP API with CORS enabled
RESTful endpoint for secure communication between frontend and backend
โก Lambda Function: Python 3.12 runtime
Processes natural language, calls Bedrock, returns structured JSON responses
๐ง Amazon Bedrock: Nova Micro Model
AI model for natural language processing and CLI command generation
๐ IAM Role: Least privilege permissions
Secure access to Bedrock services with minimal required permissions
๐ CloudWatch Logs: Monitoring and debugging
Complete logging for troubleshooting and performance monitoring
๐ AI Processing Flow
1. User Input โ Natural language goal entered in web interface
2. API Request โ POST request sent to API Gateway endpoint
3. Lambda Processing โ Function validates input and calls Bedrock
4. AI Generation โ Nova Micro model generates CLI command with context
5. Structured Response โ Returns command, explanation, prerequisites, and safety warnings
6. User Display โ Professional interface shows results with copy functionality
๐ฏ Key Features
- Natural Language Processing: Convert plain English to AWS CLI commands
- AI Safety Features: Built-in warnings and --dry-run suggestions
- Professional UI: Modern gradient design with responsive layout
- Cost Optimization: Uses Amazon Nova Micro (free tier model)
- Serverless Architecture: No server management, automatic scaling
- Security Best Practices: IAM least privilege, CORS protection
- Copy Functionality: One-click command copying for immediate use
- Prerequisites Display: Shows required IAM permissions
๐งช Example Interactions
Input: "Create an S3 bucket for storing logs"
Output: aws s3 mb s3://my-logs-bucket --region us-east-1
Safety: Includes bucket naming requirements and cost warnings
Input: "List all EC2 instances in us-west-2"
Output: aws ec2 describe-instances --region us-west-2
Safety: Read-only operation, no destructive actions
๐ป Technical Implementation
Frontend: Vanilla JavaScript with modern CSS gradients
Backend: Python 3.12 Lambda with Boto3 SDK
AI Model: Amazon Nova Micro (cost-effective, high-performance)
API: HTTP API Gateway with JSON request/response
Security: IAM roles, CORS, input validation
Monitoring: CloudWatch Logs with structured logging
๐ Deployment Details
Region: us-east-1
CloudFormation Stack: project-8-cli-copilot
Website URL: http://project-8-cli-copilot.s3-website-us-east-1.amazonaws.com
API Endpoint: https://va9es8ti5g.execute-api.us-east-1.amazonaws.com/prod
Deployment Date: October 22, 2025
Status: โ
Production Ready
๐ง AWS Services Utilized
S3 (Static Hosting)
API Gateway (HTTP API)
Lambda (Serverless Compute)
Bedrock (AI/ML)
IAM (Security)
CloudWatch (Monitoring)
โ Back to Portfolio