๐Ÿค– Project 8: AWS CLI Helper (Bedrock AI Agent)

โœ… Status: Live and Operational
๐Ÿš€ Try Live Demo

๐Ÿ“‹ 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.

Project 8 Architecture Diagram

๐Ÿ—๏ธ 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

๐Ÿงช 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)
๐Ÿš€ Try the Live Demo
โ† Back to Portfolio