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

PropertyValue
Budget nameMy Monthly Cost Budget
Monthly limit$500 USD
Time unitMonthly

Alert Thresholds

ThresholdTypeTriggers When
85%ActualActual spend exceeds $425
100%ActualActual spend exceeds $500
100%ForecastedAWS 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

VariableDefaultDescription
budget_start_dateAuto (tomorrow)Custom start date for the budget
budget_alert_emailsConfigured listEmail addresses for alerts