This module will setup all generic alarms including required components based on the parameter passed in alarm variable.
1. alarm = << available values are listed below >>
1. alarm_prefix = << value to be added in various component names - ex. prod/stage/dev/sdbx >>
NB: Max length of alarm prefix is 6 charrecters and should starts with alphabates
- "S3-ALARM"
- "SG-ALARM"
- "NACL-ALARM"
- "VPC-ALARM"
- "IAM-ALARM"
- "HEALTH-ALARM"
- "CLOUDTRAIL-ALARM"
module "Health" {
source = "."
alarm = "HEALTH-ALARM"
alarm_prefix = "prod"
}
module "IAM-ALARM" {
source = "."
alarm = "IAM-ALARM"
alarm_prefix = "prod"
}
If you want to directly run it from git.
module "Health" {
source = "git::git@github.com:wiley/terraform-aft-cloudwatch?ref=v0.0.1"
alarm = "HEALTH-ALARM"
alarm_prefix = "${var.prefix}"
}
topic_arn
event_rule_name