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
}
This is about version stored in GIT, not in consul.
upvoted 2 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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 2 years, 1 month agoBaburTurk
Highly Voted 1 year, 11 months agodinesh198728
Most Recent 2 years, 2 months agozyxphreez
2 years, 2 months agoBurakko
2 years, 2 months agodonathon
2 years, 2 months agoBurakko
2 years, 2 months agoLinus11
2 years, 1 month ago