ExamGecko
Question list
Search
Search

Question 139 - Terraform Associate 003 discussion

Report
Export

Which is the best way to specify a tag of v1.0.0 when referencing a module stored in Git (for example.

Git::https://example.com/vpc.git)?

A.
Append pref=v1.0.0 argument to the source path
Answers
A.
Append pref=v1.0.0 argument to the source path
B.
Add version = ''1.0.0'' parameter to module block
Answers
B.
Add version = ''1.0.0'' parameter to module block
C.
Nothing modules stored on GitHub always default to version 1.0.0
Answers
C.
Nothing modules stored on GitHub always default to version 1.0.0
Suggested answer: A

Explanation:

The best way to specify a tag of v1.0.0 when referencing a module stored in Git is to append?ref=v1.0.0argument to the source path. This tells Terraform to use a specific Git reference, such as a branch, tag, or commit, when fetching the module source code. For example,source = 'git::https://example.com/vpc.git?ref=v1.0.0'. This ensures that the module version is consistent and reproducible across different environments.Reference= [Module Sources], [Module Versions]

asked 18/09/2024
Aamir Muhammad
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first