Sorry for the confusing title.
I am looking to create terraform configuration files based on CSVs we receive with the relevant information.
For the most part 1 row = 1 config, and each cell in a row has one piece of information. but occasionally there is a cellthat has multiple values in it. Either in the form of ports separated by commas, like this:
7000, 7001, 7002, 7003
Or in the form of IP addresses, seperated by newlines, like this:
10.0.0.1/32
10.0.0.2/32
10.0.0.3/32
10.0.0.4/32
Is it possible with a programmatically or otherwise to go through the excel sheet, and whenever one of these scenarios is encountered, the whole row is copied to a new row with the rest of the cells in that row remaining the same, but with an individual port or IP address per row.
Fun twist = some rows, will contain two or more cells with multiple values in them, so any solution would need to move procedurally through the sheet.
Thanks!
Bookmarks