<p>I created a k8s eks cluster and all of it's resources within terraform but ran into some issues and deleted the cluster through the aws UI. Now when I try to run terraform I'm getting this error <code>Error: Get &quot;http://localhost/api/v1/persistentvolumes/efs-jupyter-shared-v2&quot;: dial tcp 127.0.0.1:80: connect: connection refused</code> for each of the resources. I tried commenting out all of the resources within terraform and running, and still got the same error. Any ideas how to proceed?</p>

cWerning
<p>You need to clean the terraform state:</p>
<p>First step is listing all the resources in the state:</p>
<pre class="lang-bash prettyprint-override"><code>terraform state list
</code></pre>
<p>Then you can delete the resources you deleted in AWS dashboard:</p>
<pre class="lang-bash prettyprint-override"><code>terraform state rm &lt;resource_name&gt;
</code></pre>
<p>Finally you can run your terraform code to recreate the resources.</p>
