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?
I do not believe that terraform import has any flag named ‘-generate-config-out’. You can write ‘terraform import -help’ to see al the available flags.
-generate-config-out is not an option for
import, but is a valid
plan option when importing single instances into the root module. You can see the import block documentation for more details: Import - Configuration Language | Terraform | HashiCorp Developer