All I want in life is for AWS to shoot me an email when any of Trusted Advisor's Service Limits go to WARN or ERROR status. I've checked their guides, tried chatting with support and no one can get that to happen, so I'm reaching out here.
We spin up a lot of EC2 instances and CloudFormation stacks and everything uses lots of resources. Somehow we always hit a limit we didn't know about in the middle of a validation sprint and end up blocked for an hour while AWS takes their sweet time bumping our limits. I'd like to set up some kind of event to email devops when one of the Service Limits is close to being reached. I am alright with it checking as infrequently as once a week, but would prefer once a day if that kind of granularity is possible.
I tried setting up a CloudWatch Event, but the only option I could get was to email us when the Service Limits were refreshed - which is useless, because then you're already in there manually looking at it and there's no point in an email.
Support told me there's no default functionality for this inside of AWS, so I'm looking for either custom event options, or I will also accept something leveraging Jenkins2 and the AWS CLI if that is a possible route. If Jenkins is the way to go it doesn't need to send an email - I'd probably have it slack our devops channel, if that changes the answer any.