Terraform refresh and -generate-config-out

Hi experts, I used Terraform to create a few resources on AWS. After that manually created ec2 instance. I try to update state file using terraform plan refresh not update state file. also I try -generate-config-out, but the file was not created. shown message cli 'no changes.