How viktoriasemaan/sa-ai-agent works
Main System Components
a) Core Components:
• Amazon Bedrock Agent (Central orchestrator)
• Three Tool Services:
• Knowledge Base Q&A Tool
• IaC Generation Tool
• Cost Estimation Tool
• Lambda Function Container
• Supporting AWS Services (S3, ECR)
b) External Components:
• InfraCost Integration
• Claude 3.5 Sonnet Model
• Knowledge Base Sources
Key Interactions to Highlight
a) Knowledge Base Flow:
• Web crawler data ingestion
• S3 document storage
• Vector embedding process
• Query processing
b) IaC Generation Flow:
• User request processing
• Claude model interaction
• Terraform code generation
• S3 storage of generated code
c) Cost Estimation Flow:
• InfraCost container execution
• Cost analysis processing
• Results storage and presentation
Important Details
• Security boundaries (IAM roles and permissions)
• API endpoints and interfaces
• Environment variables and configuration points
• Docker container composition
• Lambda function configuration