I have a file that has a list of strings, separated by a new line.
10.0.0.0
10.0.0.1
10.0.0.2
I would like to convert them into a List of type String, so that I can utilize them within my Terraform.
Is there a way to do this?
I can save the file as whatever format I like. I have been trying to save it as a yaml, then utilize yamldecode to make this convertion to ['10.0.0.0', '10.0.0.1', '10.0.0.2'] but so far, I haven't been able to.
Is there a way to achieve this?
Any help on this would be appreciated!