Module Reference
Cost Alerts — Budget Monitoring
AWS Budgets configuration for monthly cost monitoring with email alerts at configurable thresholds.
Production
Directory: global/cost-alerts/
Files: budgets.tf, slack-notifications.tf, variables.tf
What It Manages
Monthly cost budget with multiple alert thresholds to prevent unexpected AWS spending.
Budget Configuration
| Property | Value |
|---|---|
| Budget name | My Monthly Cost Budget |
| Monthly limit | $500 USD |
| Time unit | Monthly |
Alert Thresholds
| Threshold | Type | Triggers When |
|---|---|---|
| 85% | Actual | Actual spend exceeds $425 |
| 100% | Actual | Actual spend exceeds $500 |
| 100% | Forecasted | AWS forecasts spend will exceed $500 |
Notification Recipients
Alerts are sent via email to addresses configured in var.budget_alert_emails.
Slack Integration
Slack notifications are planned but not yet implemented. The architecture will be:
AWS Budgets → SNS Topic → Lambda Function → Slack Webhook
See global/cost-alerts/slack-notifications.tf for the implementation plan.
Variables
| Variable | Default | Description |
|---|---|---|
budget_start_date | Auto (tomorrow) | Custom start date for the budget |
budget_alert_emails | Configured list | Email addresses for alerts |