Terraform to read variable values from csv file

csvdecode(file("./test.csv")) is throwing error.

Call to function “csvdecode” failed: parse error.

I want to read values of all variables from a csv file.

Could you please let me know the correct way to implement this.

Thanks.

Hi @shareKnowledge,

That error message indicates that your test.csv file has invalid CSV syntax, but without seeing what that file looks like and the remainder of the error message I can’t offer any ideas as to what might be invalid about it.