Features
Cost analysis
Crust uses OpenAI to analyze your Terraform infrastructure and identify cost optimization opportunities.
How It Works
When you run crust cost
, Crust will:
- Execute your Terraform plan
- Analyze infrastructure costs
- Compare with current infrastructure
- Present results in a clear and formatted way
Cost Analysis Features
1. Resource Cost Calculation
- Individual costs per resource
- Monthly and annual projections
- Service breakdown
2. Change Impact Analysis
- Cost changes relative to current state
- New resource costs
- Savings from removed resources
3. Cost Optimization
- Identification of potential savings
- Suggestions for cost-effective alternatives
- Highlighting of expensive resources
Usage
Basic Usage
Advanced Usage
Output Format
Table Format (Default)
Best Practices
- Run cost analysis early: Include cost analysis in your development workflow
- Review significant changes: Pay attention to large cost increases
- Use in CI/CD: Integrate cost analysis into your CI/CD pipeline
- Regular checks: Run cost analysis regularly to track expenses
Cost Optimization Tips
- Right-sizing: Use appropriate instance types
- Use reserved instances: For predictable workloads
- Implement auto-scaling: Scale resources based on demand
- Monitor unused resources: Clean up unused resources regularly