Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/static_website/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions modules/website_monitoring/alarms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down