Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know which Terraform Module Version is utilized?

Is there a way to get what’s exact version of the module being obtained or used ?

There are few places I am using the version like ~> 0.0.5 to consume the modules - would be good to know what’s used.

When I try to output the whole output block - it displays all the outputs published in the module (not the module’s attributes or metadata)

like image 736
Naveen Vijay Avatar asked May 14 '26 12:05

Naveen Vijay


1 Answers

In case anybody lands here, the best would be to look into the modules.json file which is held by Terraform in .terraform folder.

You can print its contents for example with jq (if you're using bash or similar):

cat .terraform/modules/modules.json | jq
like image 189
Maciej Rostański Avatar answered May 17 '26 07:05

Maciej Rostański



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!