Terraform import -generate-config-out

I am planning to import an environment in to terraform, an I have read that there is a way to generate te code to, by first create a simple code with from: and to: then run a command terraform plan -generate-config-out. But this fails. Is this an option only for AWS?