How to read On premise Environment from Terraform Automatically

I would like to know that can we auto generate Terraform file base on existing on premise environment ? or existing cloud environment.

if both are not possible and we need design manually so what is best approach so we can avoid alot manual work .