AWS-Terraform to read the input variable from a csv file

Hi Team,

Currently we are planning adopt devops platform. As a part of this we have decided to go with terraform as infrastructure code.

My requirement is that, we wanted our terraform script to fetch the variables from a csv file and run it.

We we are planning to use Jenkins aswel for the CICD. Is it possible that terraform can take this csv file as an input for all of its variable and run the code .

Did any one has already tried this ?if yes can I please get the sample terraform code for instance creation,LB or VPC creation.

If someone can share the sample code and input csv file it will be really great.

please let me know if anyone needs any details.

Regards,

Fayiz