ExamGecko
Question list
Search
Search

Question 174 - Terraform Associate 003 discussion

Report
Export

Which of the following is not a valid source path for specifying a module?

A.
source - 'github.com/hashicorp/examplePref-ul.0.8M
Answers
A.
source - 'github.com/hashicorp/examplePref-ul.0.8M
B.
source = './module?version=vl.6.0'
Answers
B.
source = './module?version=vl.6.0'
C.
source - 'hashicorp/consul/aws'
Answers
C.
source - 'hashicorp/consul/aws'
D.
source - './module'
Answers
D.
source - './module'
Suggested answer: B

Explanation:

Terraform modules are referenced by specifying a source location. This location can be a URL or a file path. However, specifying query parameters such as ?version=vl.6.0 directly within the source path is not a valid or supported method for specifying a module version in Terraform. Instead, version constraints are specified using the version argument within the module block, not as part of the source string. Reference = This clarification is based on Terraform's official documentation regarding module usage, which outlines the correct methods for specifying module sources and versions.

asked 18/09/2024
Franziska Kreuz
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first