title: Amazon AWS Grey state - Deleting security group failed
body: <p>I am new to AWS. After invalid deployment my environment <code>cloudapp</code> went to the Grey state. I have created another environment <code>cloudapp-1</code>and successfully uploaded and deployed my app. Then I swap the URLs to keep the first address still working. </p>
  
  <p>Now when my first env is in the Grey state I am not able to do anything with it. I am not able to deploy, rebuild or even terminate it. I receive errors like this ones below.</p>
  
  <pre><code>Stack deletion failed: The following resource(s) failed to delete: [awseb-xxx-AWSEBSecurityGroup]. 
   2016-07-13 13:23:32 UTC+0200   ERROR   Deleting security group named: awseb-xxx-AWSEBSecurityGroup failed Reason: resource sg-xxxxxxx has a dependent object
  </code></pre>
  
  <p>I have tried to remove AWSEBSecurityGroup from <code>cloudapp</code> but i cannot because:</p>
  
  <pre><code>Error
  Unable to validate settings: Environment named cloudapp is in an invalid state for this operation. Must be Ready.
  </code></pre>
  
  <p>It looks like kind of deadlock. I cannot delete the env because of a security group and I cannot change that group because the env is not Ready.
  How to fix it?</p>
  
  <p><a href="https://i.stack.imgur.com/rCf9j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rCf9j.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/39XiA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/39XiA.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/BGWgq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BGWgq.png" alt="enter image description here"></a></p>