Introduction
Sometimes you have resources created outside Terraform and want to manage them with Terraform. The terraform import command lets you bring those existing resources into Terraform's control without recreating them.
When you have a cloud server created manually and want Terraform to manage it.
When you want to track a database instance created by another team using Terraform.
When migrating existing infrastructure to Terraform for easier updates and version control.
When you accidentally created a resource outside Terraform and want to avoid deleting it.
When you want to add a resource created by a different tool into your Terraform state.