January 2019
Intermediate to advanced
490 pages
15h 37m
English
Let's create an alarm and simulate the conditions that will trigger it by going through the following steps:
aws cloudwatch put-metric-alarm \ --alarm-name FailedRequestsAlarm \ --alarm-description 'Alarm for failed login requests' \ --metric-name 'FailedLogins' \ --namespace 'ServerlessProgrammingCookbook' \ --statistic 'Average' \ --period 60 \ --threshold 5 \ --comparison-operator GreaterThanOrEqualToThreshold \ --evaluation-periods 1 \ --alarm-actions arn:aws:sns:us-east-1:<account id>:my-first-sns-topic \ --region us-east-1 \ --profile admin
Read now
Unlock full access