title: Cannot delete capcity provider
body: <p>I'm trying to build some infrastructure using Terraform. This includes an ECS cluster and a capacity provider for said cluster.</p>
  <p>The capacity provider was successfully created, but then I changed its name because I accidentally left it as &quot;example&quot;. By changing the name, Terraform attempts to destroy the existing &quot;example&quot; capacity provider and create a new one.</p>
  <p>Terraform fails with:</p>
  <p><code>The capacity provider cannot be deleted because it is associated with cluster: my-cluster. Remove the capacity provider from the cluster and try again.</code></p>
  <p>So I go to update the cluster in the console, and I remove the capacity provider from the cluster and save the cluster. Then, I try again, but it keeps failing with the same error message.</p>
  <p>How can I possibly delete this capacity provider? Surely, this must be a bug in AWS?</p>