The documentation here: Import Terraform configuration | Terraform | HashiCorp Developer
Suggests that " Use terraform plan
with the -generate-config-out
flag to generate configuration for the container you will import. Terraform builds a plan and outputs the generated configuration for the container to the specified file." I am attempting to do this against a simple resource group in Azure. I am logging no errors on this command “terraform plan -generate-config-out=test.tf” and the cli output from the command is normal with the needed changes with the note “You didn’t use the -out option to save this plan, so Terraform can’t guarantee to take exactly these actions if
you run “terraform apply” now.” I searched my file system and the expected test.tf is non-existent. Any ideas out there?
Thanks!