mirror of
https://github.com/ghndrx/terraform-foundation.git
synced 2026-02-10 06:45:06 +00:00
ML-powered anomaly detection using AWS Cost Explorer: - Flexible monitoring (service-level, account-level, or Cost Category) - Dual thresholds (percentage OR absolute impact) - Service-specific monitors with custom thresholds - SNS + direct email alerting - KMS encryption support Complements budget-alerts by catching spending anomalies that don't breach budget thresholds but deviate from patterns.
39 lines
1.2 KiB
HCL
39 lines
1.2 KiB
HCL
################################################################################
|
|
# Outputs
|
|
################################################################################
|
|
|
|
output "monitor_arn" {
|
|
description = "ARN of the main cost anomaly monitor"
|
|
value = aws_ce_anomaly_monitor.main.arn
|
|
}
|
|
|
|
output "monitor_id" {
|
|
description = "ID of the main cost anomaly monitor"
|
|
value = aws_ce_anomaly_monitor.main.id
|
|
}
|
|
|
|
output "subscription_arn" {
|
|
description = "ARN of the cost anomaly subscription"
|
|
value = aws_ce_anomaly_subscription.main.arn
|
|
}
|
|
|
|
output "subscription_id" {
|
|
description = "ID of the cost anomaly subscription"
|
|
value = aws_ce_anomaly_subscription.main.id
|
|
}
|
|
|
|
output "sns_topic_arn" {
|
|
description = "ARN of the SNS topic for anomaly alerts"
|
|
value = aws_sns_topic.anomaly_alerts.arn
|
|
}
|
|
|
|
output "service_monitor_arns" {
|
|
description = "Map of service-specific monitor ARNs"
|
|
value = { for k, v in aws_ce_anomaly_monitor.service : k => v.arn }
|
|
}
|
|
|
|
output "service_subscription_arns" {
|
|
description = "Map of service-specific subscription ARNs"
|
|
value = { for k, v in aws_ce_anomaly_subscription.service : k => v.arn }
|
|
}
|