title: Terraform- provider configuration not found
body: <p>How to resolve below error</p>
  <pre><code>Error: Provider configuration not present
  
  To work with module.my_ec2.aws_instance.web[0] (orphan) its original provider
  configuration at module.my_ec2.provider[&quot;registry.terraform.io/hashicorp/aws&quot;]
  is required, but it has been removed. This occurs when a provider
  configuration is removed while objects created by that provider still exist in
  the state. Re-add the provider configuration to destroy
  module.my_ec2.aws_instance.web[0] (orphan), after which you can remove the
  provider configuration again.
  
  Releasing state lock. This may take a few moments...
  </code></pre>