Import existing infra into Terraform HCL

A blocker of Terraform adoption to manage infrastructure is the lack of support to, more than importing the existing state, generate the configuration file that matches it.

Is there any plans to make this widely available? Would be a massive contribution. I am aware some tools have been created to allow this, but these are specific to certain providers like the ARM. This does not include all the resources we would like to manage.


I’m not disagreeing with you about the capability being beneficial, but doesn’t any code of this nature inherently need to be specific to a certain provider, by definition?

You’re talking about introspecting a potentially complex infrastructure by calling APIs, and reverse-engineering that into Terraform resources. The APIs to call and the appropriate mapping to Terraform resources will be unique to each Terraform provider.