Skip to content

Commit

Permalink
Create SES Bounce rate alarm
Browse files Browse the repository at this point in the history
  • Loading branch information
kin0992 committed Jan 31, 2024
1 parent b2f50b8 commit 4d45f2f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .infrastructure/65_ses.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,22 @@ module "ses_developer_pagopa_it" {
ses_group_name = "DevPortalSES"
user_name = "DevPortal"
}

# Alarms

## Bounce rate alarm
module "metric_alarm" {
source = "git::https://github.com/terraform-aws-modules/terraform-aws-cloudwatch.git//modules/metric-alarm?ref=0b4aa2b9aa19060205965a938de89a7bf0ff477b" # v5.1.0

alarm_name = "DevPortal | Website | SES | Bounce Rate"
alarm_description = "Alarm to monitor the bounce rate"
metric_name = "Bounce"
namespace = "AWS/SES"

comparison_operator = "GreaterThanOrEqualToThreshold"
threshold = "0.05" # 5%
statistic = "Average"
period = 300 # 5 minutes
evaluation_periods = 1

}

0 comments on commit 4d45f2f

Please sign in to comment.