TERRAFORM-ASSOCIATE-003 · Question #48
How do you specify a module's version when publishing it to the public terraform Module Registry?
The correct answer is D. Tag a release in the associated repo. This is how you specify a module's version when publishing it to the public Terraform Module Registry, as it uses the tags from your version control system (such as GitHub or GitLab) to identify module versions. You need to use semantic versioning for your tags, such as v1.0.0.
Question
How do you specify a module's version when publishing it to the public terraform Module Registry?
Options
- AConfiguration it in the module's Terraform code
- BMention it on the module's configuration page on the Terraform Module Registry
- CThe Terraform Module Registry does not support versioning modules
- DTag a release in the associated repo
How the community answered
(64 responses)- A3% (2)
- B14% (9)
- C5% (3)
- D78% (50)
Explanation
This is how you specify a module's version when publishing it to the public Terraform Module Registry, as it uses the tags from your version control system (such as GitHub or GitLab) to identify module versions. You need to use semantic versioning for your tags, such as v1.0.0.
Topics
Community Discussion
No community discussion yet for this question.