This repository contains terraform module ready to use for everyone that would like to add AWS cost monitoring to their AWS accounts
module "aws_budget" {
source = "github.com/schibsted/aws-cost-monitoring//aws-budget"
monthly_budget = "1000.0" # USD
subscriber_email_list = ["my-email@example.org"]
}
module "datadog_monitors" {
source = "github.com/schibsted/aws-cost-monitoring//datadog-budget"
monthly_budget = "1000.0" # USD, for dashboard coloring
subscriber_email_list = ["my-email@example.org"]
minimal_alerting_value = "1" # minimal per day value to alert with anomaly detection
}
aws_budgets_budget.monthly
: Monthly budget including basic notifications when overspending
datadog_monitor.aws_aws_cost_monitor
: Composite monitor constructed as a conjunction of monitorsaws_service_anomaly
andaws_service_minimal_cost
datadog_monitor.aws_service_anomaly
: (submonitor) Per AWS service anomaly detection monitors groupdatadog_monitor.aws_service_minimal_cost
: (submonitor) Per AWS service threshold detection (by default: 0 to avoid false alarms due to counter reset on the beginning of the month). Useful when adjusting to ignore low-cost services if they produce a lot of noise.datadog_downtime.aws_service_anomaly
: Mutesaws_service_anomaly
submonitordatadog_downtime.aws_service_minimal_cost
: Mutesaws_service_minimal_cost
submonitor
datadog_dashboard.aws_cost_dashboard
: AWS cost dashboard