title: Can't delete AWS internet Gateway
body: <p>I created an internet gateway in AWS VPC dashboard, I attached it to a VPC then I want to detach it but I keep getting this error:</p>
  
  <pre><code>Network vpc-xxxx has some mapped public adresses, Please unmap those public addresses before detaching the gateway. ( Service: AmazonEC2; Status Code: 400; Error Code: DependencyViolation; Request ID: qfdqsdf)
  </code></pre>
  
  <p>What to do to detache this IGW ? Why exactly do I get this error?</p>
  
  <p>I need to get rid of this IGW without deleting extra resources. please any ideas?</p>
  
  <p>For information, the route table of the VPC does contain public addresses but they are routed to other targets. This IGW is not set as target anywhere.</p>