From a7cff6f5cc6fad393595f123441d2f56bb0a511d Mon Sep 17 00:00:00 2001 From: cob16 Date: Thu, 12 Feb 2026 20:47:04 +0000 Subject: [PATCH] update alarm threasholds for new free tier --- modules/static_website/cloudfront.tf | 2 +- modules/website_monitoring/alarms.tf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/static_website/cloudfront.tf b/modules/static_website/cloudfront.tf index 56f264c..e3c4491 100644 --- a/modules/static_website/cloudfront.tf +++ b/modules/static_website/cloudfront.tf @@ -2,7 +2,7 @@ resource "aws_cloudfront_distribution" "www_distribution" { provider = aws.us_east_1 price_class = "PriceClass_All" - web_acl_id = null //aws will create and manage this automaticly + web_acl_id = null //aws will create and manage this automaticly // origin is where CloudFront gets its content from. origin { diff --git a/modules/website_monitoring/alarms.tf b/modules/website_monitoring/alarms.tf index c094bb8..016dbe3 100644 --- a/modules/website_monitoring/alarms.tf +++ b/modules/website_monitoring/alarms.tf @@ -27,7 +27,7 @@ resource "aws_cloudwatch_metric_alarm" "six-hour-billing-warning" { resource "aws_cloudwatch_metric_alarm" "cloudfront-free-tier-request-limit" { alarm_name = "Cloudfront free requests limit" comparison_operator = "GreaterThanThreshold" - threshold = 66000 //2 million requests per month on the free tear, devided over 30 days + threshold = 33000 //1 million requests per month on the free tear, devided over 30 days datapoints_to_alarm = 1 evaluation_periods = 1 @@ -55,7 +55,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudfront-free-tier-data-limit" { alarm_name = "Cloudfront free data limit" alarm_description = "50gb is free per month. cloudwatch alarms can only be over 1 day so (50gb divided by 30 days = 1.6gb" comparison_operator = "GreaterThanThreshold" - threshold = 1600000000 //50gb divided by 30 days in bytes + threshold = 3200000000 //100gb divided by 30 days in bytes datapoints_to_alarm = 1 evaluation_periods = 1