Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Discover Existing Terraform Version

Is there a way to figure out what version of Terraform might have been used to write a number of terraform config files?

My version of terraform is v1.0.11. I've just cloned a repo to work with and the terraform config syntax looks well old.

I've tried searching to see if required_version is set anywhere but nothing comes up.

Is there some kind of way to figure this out?

like image 690
Metro Avatar asked Sep 17 '25 22:09

Metro


1 Answers

If you have access to the terraform.tfstate you can find the version by searching for terraform_versionon the tfstate json file.

like image 162
emdneto Avatar answered Sep 19 '25 13:09

emdneto