2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/maintenance.git synced 2023-12-14 03:33:04 +01:00
maintenance/cdn/terraform/cloudwatch.tf
Chris Marusich bf5bbce7ed
cdn: Update billing alarms.
* 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.
2019-07-07 15:31:20 -07:00

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"
}
}