Autonomous infrastructure security, cost optimization, and compliance — powered by Amazon Nova 2 Lite.
Nova Guardian is a next-generation GitHub App designed to be your virtual Senior SRE. It automatically scans every Pull Request (PR) containing Infrastructure-as-Code (IaC) files, providing real-time security reviews, cost impact predictions, and one-click code fixes.
By leveraging Amazon Nova 2 Lite's advanced reasoning, Nova Guardian doesn't just find bugs—it understands the context, explains the risk, and suggests the exact code change needed to fix it.
- 🤖 Multi-Agent Orchestration: A specialized 4-agent pipeline (Parse → Scan → Reason → Report) that executes in under 4 seconds.
- 🛡️ Multi-Format Support: Scans Terraform (HCL), Kubernetes YAML, Dockerfiles, GitHub Actions, and AWS SAM templates.
- 💡 AI Reasoning: Uses Nova 2 Lite's Extended Thinking to map findings to compliance frameworks (CIS, SOC2) and generate human-readable explanations.
- 💸 Cost & Compliance: Estimates the financial impact of infrastructure changes and ensures alignment with security best practices.
- ⚡ Inline PR Reviews: Posts suggestions directly into the GitHub PR diff, allowing developers to "Commit suggestion" instantly.
- 📊 Live Dashboard: A Neo-Brutalist real-time interface to visualize scan history, agent execution traces, and interact with a project-aware AI chat assistant.
Nova Guardian operates via a sophisticated agentic chain:
- The Fetcher: Retrieves modified files from the GitHub PR.
- The Scanner: Performs static analysis against security and cost anti-patterns.
- The Brain (Nova 2 Lite): Analyzes findings, generates context-aware fixes, and maps compliance.
- The Reporter: Posts inline reviews and updates commit statuses (blocking merge on
CRITICALissues).
- Python 3.11+ & Node.js 18+
- ngrok account for local webhook tunneling.
- AWS Bedrock access for Amazon Nova.
- Clone the repo and navigate to
Finops/. - Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # or .\venv\Scripts\Activate.ps1 on Windows
- Install dependencies:
pip install -r requirements.txt - Configure
.envwith yourGITHUB_APP_ID,GITHUB_PRIVATE_KEY_PATH, andAWS_BEARER_TOKEN_BEDROCK.
# Terminal 1: Start ngrok
ngrok http 8000
# Terminal 2: Start Webhook Server
python -m uvicorn github_app.webhook_server:app --host 127.0.0.1 --port 8000 --reloadNote: Update your GitHub App Webhook URL with the ngrok address.
cd finops-frontend
npm install
npm run devVisit http://localhost:3000/dashboard to see your scans in action!
- AI: Amazon Nova 2 Lite (via AWS Bedrock Converse API)
- Backend: Python (Flask/FastAPI), AWS Step Functions, SQLite
- Frontend: Next.js 15, Tailwind CSS, Lucide Icons
- Integration: GitHub Apps API, Webhooks
- Nova Act Integration: Fully automated self-healing infrastructure.
- Multi-Repo Analytics: Organization-wide security posture dashboards.
- Custom Policies: YAML-based custom rule definition for teams.
- ChatOps: Slack and Microsoft Teams notification routing.
Distributed under the MIT License. See LICENSE for more information.
Created for the Amazon Nova AI Hackathon.