Metadata-Version: 2.4
Name: awdx
Version: 0.0.16
Summary: AWS DevOps X: Gen AI-powered AWS DevSecOps CLI tool with natural language interface.
Author-email: Partha Sarathi Kundu <inboxkundu@gmail.com>
Maintainer-email: Partha Sarathi Kundu <inboxkundu@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/pxkundu/awdx
Project-URL: Repository, https://github.com/pxkundu/awdx
Keywords: aws,devops,devsecops,cli,cost-analysis,security,automation,ai,nlp,gemini,natural-language
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: System :: Systems Administration
Classifier: Topic :: Utilities
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: AUTHORS.md
Requires-Dist: typer[all]>=0.9.0
Requires-Dist: boto3>=1.28.0
Requires-Dist: google-generativeai>=0.3.0
Requires-Dist: rich>=13.0.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: pillow>=9.0.0
Requires-Dist: importlib-metadata>=4.0.0; python_version < "3.8"
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: pytest-mock>=3.10.0; extra == "dev"
Provides-Extra: security
Requires-Dist: bandit[toml]>=1.7.0; extra == "security"
Requires-Dist: safety>=3.0.0; extra == "security"
Requires-Dist: flake8>=6.0.0; extra == "security"
Requires-Dist: mypy>=1.0.0; extra == "security"
Requires-Dist: black>=23.0.0; extra == "security"
Requires-Dist: isort>=5.12.0; extra == "security"
Requires-Dist: pylint>=3.0.0; extra == "security"
Provides-Extra: test
Requires-Dist: pytest>=7.0.0; extra == "test"
Requires-Dist: pytest-cov>=4.0.0; extra == "test"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "test"
Requires-Dist: pytest-mock>=3.10.0; extra == "test"
Requires-Dist: bandit[toml]>=1.7.0; extra == "test"
Requires-Dist: safety>=3.0.0; extra == "test"
Requires-Dist: flake8>=6.0.0; extra == "test"
Requires-Dist: mypy>=1.0.0; extra == "test"
Requires-Dist: black>=23.0.0; extra == "test"
Requires-Dist: isort>=5.12.0; extra == "test"
Requires-Dist: pylint>=3.0.0; extra == "test"
Requires-Dist: moto[all]>=4.0.0; extra == "test"
Requires-Dist: types-PyYAML>=6.0.0; extra == "test"
Dynamic: license-file

# awdx

**awdx** (AWS DevOps X) is a next-generation, human-friendly CLI tool for AWS DevSecOps. It helps you manage, automate, and secure your AWS environment with simple, interactive commands and smart suggestions.

![AWDX Banner](https://raw.githubusercontent.com/pxkundu/awdx/development/assests/AWDX.png)

---

## Table of Contents
- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Quick Start](#quick-start)
- [Modules](#modules)
- [Future Plans](#future-plans)
- [Project Status](#project-status)

---

## Features
- **Profile Management:** Create, switch, and validate AWS profiles interactively
- **Cost Intelligence:** Advanced cost analysis with anomaly detection and forecasting
- **IAM Management:** Comprehensive IAM security audit and compliance checking
- **S3 Security:** Complete S3 bucket security assessment and compliance monitoring
- **Secret Management:** Automated secret discovery, rotation, and compliance
- **Security Assessment:** Comprehensive security posture and vulnerability scanning
- **Task Automation:** 40+ high-level DevSecOps automation commands with AI enhancement
- **AI-Powered Interface:** Natural language commands with Google Gemini integration
- **MCP Server:** Model Context Protocol integration for AI assistants
- **Smart Suggestions:** Receive actionable best-practice tips after every action
- **Human-Friendly CLI:** Simple, memorable commands and interactive prompts

---

## Requirements
- Python 3.8+
- [boto3](https://boto3.amazonaws.com/v1/documentation/api/latest/index.html)
- [typer](https://typer.tiangolo.com/)

---

## Installation

### From Source
```bash
pip install .
```

### From PyPI
```bash
pip install awdx
```

📦 **Available on PyPI:** [awdx on PyPI](https://pypi.org/project/awdx/)

---

## Quick Start

Show help and available commands:
```bash
awdx --help
```

---

## Modules

### AWDX with Gen AI + NLP based CLI execution
🤖 **Revolutionary AI-powered natural language interface that understands your DevSecOps intent!** Chat with your AWS infrastructure using plain English. No more memorizing complex commands - just ask AWDX what you want to accomplish.

![AWDX AI Interface](https://raw.githubusercontent.com/pxkundu/awdx/development/assests/AWDXAI.png)

```bash
# Ask anything in natural language
awdx ai ask "show me all my AWS profiles"
🤖 Analyzing your request...
💡 Intent: list_profiles
🎯 AWDX Command: awdx profile list
✨ Confidence: 95%

# Interactive AI chat session  
awdx ai chat
🤖 AWDX AI Assistant ready! Ask me anything about your AWS environment.
💬 You: "What are my highest cost services this month?"
🤖 I'll help you analyze your AWS costs. Running: awdx cost summary
💰 Your top 3 services: EC2 ($567.89), S3 ($234.56), RDS ($123.45)
💡 Suggestion: Consider EC2 reserved instances to save up to 30%

# Get intelligent explanations
awdx ai explain "awdx iam audit --fix"
🧠 Command Breakdown:
📋 awdx iam audit: Performs comprehensive IAM security assessment
🔧 --fix flag: Automatically remediates safe issues
⚠️  Security Note: Review changes before applying in production
🎯 Best Practice: Run without --fix first to preview changes
```

💡 **AI Features:**
• **Smart Intent Recognition** - 25+ supported DevSecOps intents
• **Google Gemini Integration** - Powered by advanced AI models
• **Security-First** - Built-in security recommendations and warnings
• **Context Awareness** - Understands your AWS environment and suggests workflows
• **Interactive Chat** - Conversational DevSecOps automation

📖 **Full Documentation:** [AI Features](docs/AI_FEATURES.md) | [AI Engine Architecture](https://github.com/pxkundu/awdx/tree/development/docs/AIENGINEARCH.md)

### MCP Server Integration
🔌 **Model Context Protocol (MCP) server for AI assistant integration!** Connect AWDX to Claude Desktop, ChatGPT, and other AI assistants for seamless DevSecOps automation.

![AWDX MCP server tools](https://raw.githubusercontent.com/pxkundu/awdx/development/assests/AWDX_MCP.png)

```bash
# Start MCP server
awdx mcp start
🔌 MCP server is ready to accept connections!
Connect your AI assistant to: localhost:3000

# List available tools
awdx mcp tools
Profile Management
 awdx_profile_list    List all AWS profiles configured in AWDX 
 awdx_profile_switch  Switch to a different AWS profile        
 awdx_profile_add     Add a new AWS profile                    

Cost Analysis
 awdx_cost_summary   Get AWS cost summary and analysis     
 awdx_cost_trends    Analyze cost trends over time         
 awdx_cost_optimize  Get cost optimization recommendations 

# Test connection
awdx mcp test
✓ Connection successful!
Server: AWDX MCP Server v1.0.0
```

💡 **MCP Features:**
• **17 MCP Tools** - All AWDX capabilities exposed as standardized tools
• **AI Assistant Integration** - Connect to Claude Desktop, ChatGPT, and custom assistants
• **Real-time AWS Data** - Live access to AWS resources and security posture
• **Secure Communication** - Local execution with AWS credential management
• **Standardized Protocol** - Compatible with MCP-compliant AI assistants

📖 **Full Documentation:** [MCP Integration](https://github.com/pxkundu/awdx/tree/development/docs/MCP_INTEGRATION.md)

### Profile Management
Manage AWS profiles with security best practices and validation.

![Profile Management Commands](https://raw.githubusercontent.com/pxkundu/awdx/development/assests/AWDX_PROFILE_HELP.png)

```bash
# List all profiles
awdx profile list
👤 Found 3 profiles:
🎯 👤 default (current)
👤 devops
👤 prod

# Switch profiles
awdx profile switch devops
✅ To switch profile, run:
  export AWS_PROFILE=devops

# Validate credentials
awdx profile validate devops
✅ Profile 'devops' is valid. Account: 123456789012, ARN: arn:aws:iam::123456789012:user/devops
```

📖 **Full Documentation:** [Profilyze Module README](https://github.com/pxkundu/awdx/blob/development/Profilyze/DESIGN.md)

### Cost Analysis
Monitor, analyze, and optimize AWS spending with intelligent insights.

![Cost Management Commands](https://raw.githubusercontent.com/pxkundu/awdx/development/assests/AWDX_COST_HELP.png)

```bash
# Get cost summary
awdx cost summary
💰 Total Cost: $1,234.56
📊 Top 10 Services by Cost:
   1. Amazon EC2                    $567.89
   2. Amazon S3                     $234.56
   3. Amazon RDS                    $123.45

# Detect anomalies
awdx cost anomaly --threshold 2.5
🔍 Detecting cost anomalies for the last 30 days...
📊 Average daily cost: $123.45
📈 Standard deviation: $45.67
✅ No significant anomalies detected!

# Forecast costs
awdx cost forecast --months 3
🔮 Forecasting costs for the next 3 months...
📈 Trend direction: Upward
📊 Monthly change: $45.67
🎯 Trend confidence: 85.2%
```

📖 **Full Documentation:** [Costlyzer Module README](https://github.com/pxkundu/awdx/tree/development/Costlyzer)

### IAM Management
Comprehensive IAM security audit, compliance checking, and smart automation.

![IAM Management Commands](https://raw.githubusercontent.com/pxkundu/awdx/development/assests/AWDX_IAM_HELP.png)

```bash
# Security audit
awdx iam audit
🔍 Starting comprehensive IAM security audit...
🔍 Checking root account usage...
   ✅ Using IAM user/role
🔍 Checking MFA configuration...
   ❌ HIGH: 3 users without MFA
🔍 Audit Summary:
  🔴 Critical Issues: 0
  🟠 High Issues: 1
  🟡 Medium Issues: 1

# Analyze access patterns
awdx iam access
🔑 Analyzing IAM access patterns...
👤 admin (user)
   ⚡ Total Permissions: 45
   🎯 Privileged: 12
   ❌ Wildcards: 3

# Smart recommendations
awdx iam smart --auto-fix --dry-run
🚀 Generating smart IAM recommendations...
1. 🔴 Remove unused users 🤖
2. 🟠 Rotate old access keys 👤
3. 🔴 Review wildcard permissions 👤
```

📖 **Full Documentation:** [IAMply Module README](https://github.com/pxkundu/awdx/tree/development/IAMply)

### S3 Security & Compliance
Complete S3 bucket security assessment, compliance monitoring, and automated remediation.

![S3 Security Commands](https://raw.githubusercontent.com/pxkundu/awdx/development/assests/AWDX_S3_HELP.png)

```bash
# Comprehensive S3 audit
awdx s3 audit
🪣 Starting comprehensive S3 security audit...
🔍 Checking bucket configurations...
   ✅ Encryption: Enabled
   ❌ HIGH: Public access detected
🔍 Audit Summary:
  🔴 Critical Issues: 0
  🟠 High Issues: 2
  🟡 Medium Issues: 3

# Scan for vulnerabilities
awdx s3 scan --type public
🔍 Scanning for public S3 buckets...
🚨 Found 2 publicly accessible buckets:
   - my-public-bucket (HIGH RISK)
   - test-bucket (MEDIUM RISK)

# Compliance assessment
awdx s3 compliance --framework sox
📋 Assessing SOX compliance for S3...
✅ Encryption controls: PASS
❌ Access logging: FAIL
✅ Versioning: PASS
```

📖 **Full Documentation:** [S3ntry Module README](https://github.com/pxkundu/awdx/tree/development/S3ntry)

### Secret Management
Automated secret discovery, rotation, compliance monitoring, and smart remediation.

![Secret Management Commands](https://raw.githubusercontent.com/pxkundu/awdx/development/assests/AWDX_SECRET_HELP.png)

```bash
# Discover all secrets
awdx secret discover
🔐 Discovering secrets across AWS services...
🔍 Found 15 secrets:
   - 8 in Secrets Manager
   - 5 in Parameter Store
   - 2 in IAM access keys
❌ HIGH: 3 secrets expired
⚠️ MEDIUM: 5 secrets expiring soon

# Rotate secrets
awdx secret rotate my-secret-id
🔄 Rotating secret: my-secret-id
✅ Secret rotated successfully
📅 Next rotation: 2024-02-15

# Monitor secret health
awdx secret monitor --days 30
📊 Monitoring secret health for last 30 days...
✅ Successful rotations: 12
❌ Failed rotations: 1
⚠️ Expiring soon: 3
```

📖 **Full Documentation:** [Secrex Module README](https://github.com/pxkundu/awdx/tree/development/Secrex)

### Task Automation
🚀 **High-level DevSecOps task automation and productivity commands!** Streamline your DevSecOps workflows with intelligent automation that combines multiple AWS services into single, powerful commands.

![AWDX Task Commands](https://raw.githubusercontent.com/pxkundu/awdx/development/assests/AWDX_TASK.png)

```bash
# Comprehensive security audit
awdx task security-audit --comprehensive --fix-safe
🔍 Starting comprehensive security audit across AWS services...
🔐 IAM Security: Checking users, roles, and policies
🛡️ EC2 Security: Analyzing security groups and encryption
🪣 S3 Security: Validating bucket configurations
🔐 Secrets: Auditing secret rotation and age
📊 Audit Summary: 3 high issues, 5 medium issues found
🔧 Auto-fixing safe issues: 2 issues resolved

# Cost optimization with AI insights
awdx task cost-optimize --auto-fix --dry-run
💰 Analyzing AWS costs for optimization opportunities...
🔍 EC2 Optimization: Found 3 oversized instances
🗄️ RDS Optimization: 2 instances can be downsized
📊 Potential Savings: $234.56/month (15% reduction)
🤖 AI Recommendation: Consider reserved instances for predictable workloads

# Compliance validation
awdx task compliance-check --framework sox --output pdf
📋 Validating SOX compliance across AWS services...
✅ IAM Controls: PASS
✅ Data Protection: PASS
❌ Access Logging: FAIL (2 issues)
📄 Generating compliance report: sox_compliance_report.pdf

# Continuous security monitoring
awdx task security-monitor --continuous --alert
🛡️ Starting continuous security monitoring...
📊 Monitoring: IAM changes, S3 access, EC2 security
🚨 Alerts: Configured for critical security events
⏰ Interval: 5 minutes
📱 Notifications: Slack, email, SMS
```

💡 **Task Module Features:**
• **40+ Automation Commands** - From basic security audits to complex infrastructure automation
• **AI-Enhanced Workflows** - Intelligent insights and recommendations when AI is configured
• **Multi-Service Integration** - Combines IAM, EC2, S3, RDS, Lambda, and more
• **Compliance Frameworks** - SOX, HIPAA, PCI-DSS, SOC2, ISO27001, NIST support
• **Rich Output Formats** - Table, JSON, CSV, and PDF reports
• **Graceful AI Fallback** - Works perfectly without AI configuration

📖 **Full Documentation:** [Task Module Summary](docs/TASK_MODULE_SUMMARY.md)

### Security Assessment
Comprehensive security posture assessment, vulnerability scanning, and incident response.

![Security Assessment Commands](https://raw.githubusercontent.com/pxkundu/awdx/development/assests/AWDX_SECURITY_HELP.png)

```bash
# Security posture assessment
awdx security posture
🛡️ Starting comprehensive security posture assessment...
🔍 Network Security: 85/100
🔍 IAM Security: 92/100
🔍 Data Protection: 78/100
📊 Overall Security Score: 85/100

# Vulnerability scanning
awdx security vulnerabilities --service ec2
🚨 Scanning EC2 instances for vulnerabilities...
🔍 Found 5 security issues:
   - 2 open security groups (HIGH)
   - 1 unencrypted EBS volume (MEDIUM)
   - 2 outdated AMIs (LOW)

# Incident response
awdx security incident --type breach
🚨 Initiating incident response for security breach...
📋 Investigation checklist:
   - CloudTrail logs analysis
   - IAM access review
   - Resource access audit
   - Threat detection alerts
```

📖 **Full Documentation:** [SecuTide Module README](https://github.com/pxkundu/awdx/tree/development/SecuTide)

---

## Future Plans

### Upcoming Features
- **Multi-Cloud Support:** Extend beyond AWS to Azure and GCP
- **Integration Hub:** Connect with popular DevOps tools and CI/CD pipelines
- **Real-time Monitoring:** Live cost and security monitoring with alerts
- **Advanced AI:** Multi-modal processing and workflow automation

### Enterprise Features
- **Team Collaboration:** Multi-user support with role-based access
- **Audit Trails:** Comprehensive logging and compliance reporting
- **Custom Policies:** Define organization-specific security and cost policies
- **API Access:** RESTful API for integration with existing tools

---

## Project Status

Active development with comprehensive module coverage. The project follows a modular architecture allowing for easy extension and customization.

### Current Status
- ✅ **Profilyze Module:** Complete with full feature set
- ✅ **Costlyzer Module:** Complete with smart analytics
- ✅ **IAMply Module:** Complete with security audit and compliance
- ✅ **S3ntry Module:** Complete with security assessment and compliance
- ✅ **Secrex Module:** Complete with secret management and rotation
- ✅ **SecuTide Module:** Complete with security posture and incident response
- ✅ **Task Module:** Complete with 40+ high-level automation commands
- ✅ **AI Engine:** Complete with Google Gemini integration and natural language processing
- ✅ **MCP Server:** Complete with Model Context Protocol integration
- ✅ **Core Infrastructure:** Stable and production-ready
- ✅ **Documentation:** Comprehensive guides and examples

### Contributing
We welcome contributions! See our [Contributing Guide](CONTRIBUTING.md) for details on how to get started.

### Community
- 📖 **Documentation:** [GitHub Wiki](https://github.com/pxkundu/awdx/wiki)
- 🐛 **Issues:** [GitHub Issues](https://github.com/pxkundu/awdx/issues)
- 💬 **Discussions:** [GitHub Discussions](https://github.com/pxkundu/awdx/discussions)
- 📄 **License:** [MIT License](LICENSE)

---

## 👨‍💻 Author & Attribution

**AWDX** is created and maintained by **Partha Sarathi Kundu** (@pxkundu).

**Independence Notice**: AWDX is developed independently and is not affiliated with, endorsed by, or sponsored by any organization, university, or company.

### Copyright & License
- **Copyright**: © 2024 Partha Sarathi Kundu. All rights reserved.
- **License**: MIT License - see [LICENSE](https://github.com/pxkundu/awdx/blob/development/LICENSE) for details
- **Trademark**: "AWDX" and "AWS DevOps X" are trademarks of Partha Sarathi Kundu

### Citation
If you use AWDX in academic research or commercial projects, please cite:

```
Kundu, P. S. (2024). AWDX: AWS DevOps X - Gen AI-powered AWS DevSecOps CLI tool. 
GitHub. https://github.com/pxkundu/awdx
```

For academic papers (BibTeX):
```bibtex
@software{awdx2024,
  author = {Kundu, Partha Sarathi},
  title = {AWDX: AWS DevOps X - Gen AI-powered AWS DevSecOps CLI tool},
  year = {2024},
  url = {https://github.com/pxkundu/awdx},
  note = {MIT License}
}
```

### Contact
- **Email**: inboxkundu@gmail.com
- **GitHub**: [@pxkundu](https://github.com/pxkundu)
- **Project**: [https://github.com/pxkundu/awdx](https://github.com/pxkundu/awdx)

### Support & Troubleshooting
- **📖 Troubleshooting Guide**: [TROUBLESHOOTING.md](TROUBLESHOOTING.md) - Common issues and solutions
- **🐛 Issues**: [GitHub Issues](https://github.com/pxkundu/awdx/issues)
- **💬 Discussions**: [GitHub Discussions](https://github.com/pxkundu/awdx/discussions)

### Contributors
See [AUTHORS.md](https://github.com/pxkundu/awdx/blob/development/AUTHORS.md) for a complete list of contributors and their contributions. 
