Answers: <p>That's on my backlog but still on early stage, I just surfaced the idea, so here's are my findings so far:</p>
  
  <p><a href="http://docs.aws.amazon.com/awssupport/latest/user/trustedadvisor.html" rel="nofollow noreferrer">Using Trusted Advisor as a Web Service</a></p>
  
  <p>Mainly: 
  <a href="http://docs.aws.amazon.com/awssupport/latest/user/trustedadvisor.html#getcheckstatus" rel="nofollow noreferrer">Poll a Trusted Advisor Check for Status Changes</a></p>
  
  <p>This documentation example can be implemented with aws cli with the <a href="https://docs.aws.amazon.com/cli/latest/reference/support/index.html#cli-aws-support" rel="nofollow noreferrer"><code>support</code></a> subset of commands and targetting the 'us-east-1' region, you'll then have to filter on the <code>region</code> field in the <code>TrustedAdvisorResourceDetail</code> structure part of the list.</p>
  
  <p>I still didn't had time to write a script to poll the API (I would aim at ruby with the AWS SDK per our usage more than a shell script to group the requests).</p>
  
  <p>Hope this help getting started even if that's not really a complete answer.</p>
  
  <p>Courtesy of Romeo Ninov: For a  recap of which options is available for which account type you can check <a href="https://aws.amazon.com/premiumsupport/trustedadvisor/" rel="nofollow noreferrer">this</a> site</p>
  
Answers: CC BY-SA 3.0
Answers: 2017-03-21T18:34:45.417Z
Answers: Tensibai, for most interesting options you need Business or Enterprise type account...
Answers: Romeo Ninov
Answers: CC BY-SA 3.0
Answers: 2017-03-21T20:24:10.930Z
Answers: @romeo I edited again for the form, keeping the credits as much as I can I think
Answers: Tensibai
Answers: CC BY-SA 3.0
Answers: 2017-03-21T15:17:53.267Z
Answers: 2017-03-22T08:04:28.453Z
Answers: 2017-03-22T08:04:28.453Z
Answers: Tensibai
Body: <p>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.</p>
  <h1>Use Case</h1>
  <p>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 <strong>email devops when one of the Service Limits is close to being reached</strong>. 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.</p>
  <h3>Attempts</h3>
  <p>I tried setting up a CloudWatch Event, but the only option I could get was to email us when the Service Limits were <em>refreshed</em> - which is useless, because then you're already in there manually looking at it and there's no point in an email.</p>
  <h3>Options</h3>
  <p>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.</p>
  
Tags: <amazon-web-services><amazon-cloudwatch><aws-cli>
Title: How to set up AWS Trusted Advisor alert for Service Limit warnings?
UserDisplayName: Alex
ThreadText: # How to set up AWS Trusted Advisor alert for Service Limit warnings?
  
  (Asked by: username_0 on 2017-03-21)
  
  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.
  
  # Use Case
  
  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.
  
  ### Attempts
  
  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.
  
  ### Options
  
  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.
  
  **Tags:** amazon-web-services, amazon-cloudwatch, aws-cli
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-03-21. Score: 7
  
  That's on my backlog but still on early stage, I just surfaced the idea, so here's are my findings so far:
  
  [Using Trusted Advisor as a Web Service](http://docs.aws.amazon.com/awssupport/latest/user/trustedadvisor.html)
  
  Mainly:
  [Poll a Trusted Advisor Check for Status Changes](http://docs.aws.amazon.com/awssupport/latest/user/trustedadvisor.html#getcheckstatus)
  
  This documentation example can be implemented with aws cli with the [`support`](https://docs.aws.amazon.com/cli/latest/reference/support/index.html#cli-aws-support) subset of commands and targetting the 'us-east-1' region, you'll then have to filter on the `region` field in the `TrustedAdvisorResourceDetail` structure part of the list.
  
  I still didn't had time to write a script to poll the API (I would aim at ruby with the AWS SDK per our usage more than a shell script to group the requests).
  
  Hope this help getting started even if that's not really a complete answer.
  
  Courtesy of username_2 username_2: For a recap of which options is available for which account type you can check [this](https://aws.amazon.com/premiumsupport/trustedadvisor/) site
  
  > **Comments:**
  > **username_2**: username_1, for most interesting options you need Business or Enterprise type account...  
  > **username_1**: @username_2 I edited again for the form, keeping the credits as much as I can I think  
  
  ---
  
  