If the source is from terrform registry then we can use version = "1.0.0"
when using git as the source we have to use ?ref=1.0.0 the exact git path givin in the question is given in this terraform official documentation please check https://www.terraform.io/language/modules/sources#selecting-a-revision
as Donathon said....
https://www.terraform.io/language/modules/sources#selecting-a-revision
please check the module repository is GIT.... Burakko answer is incorrect
Use the version argument in the module block to specify versions:
Example:
module "consul" {
source = "hashicorp/consul/aws"
version = "0.0.5"
servers = 3
}
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
RVivek
Highly Voted 1 year agoBaburTurk
Highly Voted 10 months agodinesh198728
Most Recent 1 year, 1 month agozyxphreez
1 year, 1 month agoBurakko
1 year, 1 month agodonathon
1 year, 1 month agoBurakko
1 year, 1 month agoLinus11
1 year ago