mirror of
git://git.savannah.gnu.org/guix/maintenance.git
synced 2023-12-14 03:33:04 +01:00
bf5bbce7ed
* cdn/terraform/cloudwatch.tf (alarm-estimated-charges-185-usd) (alarm-estimated-charges-200-usd, alarm-estimated-charges-285-usd) (alarm-estimated-charges-300-usd): Remove these alarms... (alarm-estimated-charges-340-usd): ...and add this one.
20 lines
673 B
HCL
20 lines
673 B
HCL
# CloudWatch
|
|
|
|
# For the month of July, 2019, this threshold will give us 1 or 2 days
|
|
# to react before we exceed the overall agreed-upon budget.
|
|
resource "aws_cloudwatch_metric_alarm" "alarm-estimated-charges-340-usd" {
|
|
alarm_name = "alarm-estimated-charges-340-usd"
|
|
alarm_description = "Estimated charges have exceeded 340 USD"
|
|
namespace = "AWS/Billing"
|
|
metric_name = "EstimatedCharges"
|
|
statistic = "Maximum"
|
|
period = "21600" # 6 hours
|
|
evaluation_periods = "1"
|
|
comparison_operator = "GreaterThanThreshold"
|
|
threshold = "300"
|
|
actions_enabled = true
|
|
alarm_actions = ["${aws_sns_topic.guix-billing-alarms.arn}"]
|
|
dimensions {
|
|
Currency = "USD"
|
|
}
|
|
}
|