title: Jenkins: Cloud or AMI instance cap would be exceeded for: <name>
body: <p>Using the <code>ec2</code> plugin v1.39 to start worker nodes on EC2, I am faced with this error (and huge stack trace) every time I start a new node.</p>
  
  <pre><code>Cloud or AMI instance cap would be exceeded for: &lt;name&gt;
  </code></pre>
  
  <p>I have set the (previously unset) <code>Instance Cap</code> to 10 in both fields in Configure System. This did not fix it.</p>
  
  <p>Can anyone suggest what might be the problem? Thanks</p>
  
  <p>EDIT 1:</p>
  
  <p>I have tried changing the instance size, with no change (I went M3Medium -> M4Large).</p>
  
  <p>See <a href="https://gist.github.com/mafrosis/72fbe6bf93dba9fefd342011e85ec215" rel="nofollow noreferrer">full stack trace here</a>.</p>
  
  <p>I can also launch an <code>m4.large</code> from the console. Turns out the <code>m3.medium</code> doesn't exist in Sydney.. Hmm</p>