I’m trying to create terraform templates for an existing environment. After a brief study of template configuration language I’m thinking I could use “data source” to retrieve configuration of all the existing resources and convert them to a permanent resource template file. I understand how to use a “data source” to retrieve data of an existing resource. However it is not clear if there is an option to convert them to a template tf file for future use instead of having to rely on “data source” all the time.
Is this something anyone has implemented in their terraform journey?