In this Terraform article, the author shares their experience of accidentally deleting a complex resource that they had created manually and how they managed to recreate it using the Terraform state file.
The article covers basic Terraform concepts such as Provider, Resource, and State, and also provides step-by-step instructions on how to use Terraform commands to extract a resource definition from the state file and recreate the deleted resource. The author notes that although this solution worked for them with a specific resource, it may not work for all resources and providers.
















