Command
terraform import aws_instance.my_instance i-1234567890abcdef0
Explanation
Imports an existing resource into Terraform state so it can be managed. Useful when Terraform wasn’t used to create the resource.
Examples
Import an existing VPC into a module
terraform import module.vpc.aws_vpc.main vpc-abc123