Analyze AWS cloud architecture and create a cloud optimization plan
Analyzes AWS cloud architecture and creates a comprehensive optimization plan with cost, security, and scalability recommendations.
/plugin marketplace add dgriffith/bad-daves-robot-army/plugin install dgriffith-bad-daves-robot-army@dgriffith/bad-daves-robot-armyUsing @agent-cloud-developer prepare a cloud architecture review report. You must analyze AWS cloud patterns, scalability, and cost optimization opportunities in the codebase and create a comprehensive plan WITHOUT making any changes.
The user invoked: /cloud-review {optional_scope}
Valid scopes:
git status and git diff)git log and git diff)gh pr view and gh pr diff)If scope is "current changes":
git status to identify changed filesgit diff to see uncommitted changesIf scope is "recent changes":
git log --oneline -10 to see recent commitsgit diff HEAD~5..HEAD or appropriate rangeIf scope starts with "PR":
gh pr view {number} to get PR detailsgh pr diff {number} to get the changesIf scope is a path:
If no scope provided:
Cloud Architecture Review
AWS Best Practices Assessment
Cost and Performance Analysis
Create a markdown file at /reports/cloud-review-{timestamp}.md with:
# Cloud Architecture Review Plan
Generated: {timestamp}
Scope: {full_path_or_entire_project}
## Executive Summary
Brief overview of cloud architecture state and critical findings
## AWS Architecture Findings
### Critical Issues (Production Impact)
- [ ] Single point of failure: Component X
- [ ] Missing auto-scaling: Service Y
- [ ] Security group misconfiguration: Resource Z
### High Priority Issues
- [ ] Cost optimization: Over-provisioned resources
- [ ] Missing monitoring: Critical service A
- [ ] Backup strategy: Database B
### Medium Priority Issues
- [ ] Tagging inconsistency: Resources C
- [ ] Suboptimal service choice: Function D
## Current Architecture Assessment
### Services in Use
- EC2: X instances
- RDS: Y databases
- S3: Z buckets
- Lambda: N functions
- Other: List
### Architecture Patterns
- Deployment model: Monolithic/Microservices/Serverless
- Scaling strategy: Current approach
- Availability zones: Coverage
- Disaster recovery: RTO/RPO
## Cloud Optimization Plan
### Immediate Actions (1-3 days)
1. Fix security group rules
2. Enable CloudWatch monitoring
3. Implement backup strategy
### Short-term Improvements (1-2 weeks)
1. Implement auto-scaling for service X
2. Migrate to managed services for Y
3. Optimize instance types
### Long-term Transformations (2-8 weeks)
1. Implement multi-AZ deployment
2. Adopt serverless for appropriate workloads
3. Implement infrastructure as code
## Cost Optimization Opportunities
### Quick Wins
- Right-size EC2 instances: Save $X/month
- Delete unused resources: Save $Y/month
- Enable S3 lifecycle policies: Save $Z/month
### Strategic Changes
- Move to reserved instances: Save X%
- Implement spot instances: Save Y%
- Optimize data transfer: Save $Z/month
## Security Improvements
### Critical
- Enable encryption at rest
- Implement least privilege IAM
- Enable VPC flow logs
### Important
- Implement AWS WAF
- Enable GuardDuty
- Set up Security Hub
## Scalability Enhancements
### Auto-scaling Setup
- Services requiring auto-scaling
- Scaling policies to implement
- Load balancer configuration
### Performance Optimization
- CDN implementation
- Caching strategy
- Database read replicas
## Disaster Recovery Plan
### Backup Strategy
- RDS automated backups
- S3 cross-region replication
- EBS snapshot automation
### Recovery Procedures
- RTO target: X minutes
- RPO target: Y minutes
- Failover process
## Compliance and Governance
### Well-Architected Review
- Operational Excellence: Score
- Security: Score
- Reliability: Score
- Performance: Score
- Cost Optimization: Score
### Recommendations
- Governance improvements
- Compliance requirements
- Audit trail setup
## Migration Roadmap
### Phase 1: Foundation (Week 1-2)
- Security hardening
- Monitoring setup
- Backup implementation
### Phase 2: Optimization (Week 3-4)
- Cost optimization
- Performance tuning
- Auto-scaling setup
### Phase 3: Transformation (Week 5-8)
- Serverless migration
- Multi-region setup
- Advanced features
## Estimated Impact
- Cost reduction: X%
- Performance improvement: Y%
- Availability increase: Z%
## Risk Assessment
- Migration risks: List
- Mitigation strategies: Details
- Rollback procedures: Plan
YOU MUST CREATE THE REPORT FILE. This is not optional.
Create the report file using the Write tool at the specified path:
/reports/{command-name}-{scope}-{timestamp}.mdYYYY-MM-DD-HHmmss/reports/architecture-review-entire-project-2025-10-14-143022.mdFill in ALL sections of the report template
Confirm completion by telling the user:
❌ DON'T: Just summarize findings in the chat ❌ DON'T: Say "I'll create a report" without actually doing it ❌ DON'T: Leave sections incomplete or with placeholders ❌ DON'T: Forget to use the Write tool
✅ DO: Always use the Write tool to create the markdown file ✅ DO: Fill in every section with real findings ✅ DO: Provide the full path to the user when done ✅ DO: Include actionable recommendations
Before responding to the user, verify:
Remember: The report is the primary deliverable. The chat summary is secondary.