Importing an existing AWS instance into a Terraform module is straightforward, but the syntax trips people up because you need to specify the full module path.
terraform import module.foo.aws_instance.bar i-abcd1234
The format is module.<module_name>.<resource_type>.<resource_name>, followed by the resource ID. In this case, foo is the module name, aws_instance is the resource type, bar is the resource name inside that module, and i-abcd1234 is the AWS instance ID.
Once imported, Terraform will manage the instance and track any configuration drift going forward.