TA-002-P · Question #27
Terraform can import modules from a number of sources ?which of the following is not a valid source?
The correct answer is A. FTP server. Terraform supports module sources from various locations like local paths, version control systems, and registries, but not directly from an FTP server.
Question
Terraform can import modules from a number of sources ?which of the following is not a valid source?
Options
- AFTP server
- BGitHub repository
- CLocal path
- DTerraform Module Registry
How the community answered
(59 responses)- A95% (56)
- B2% (1)
- C3% (2)
Why each option
Terraform supports module sources from various locations like local paths, version control systems, and registries, but not directly from an FTP server.
Terraform explicitly supports module sources from local file paths, various version control systems like Git (including GitHub), generic HTTP URLs, and the Terraform Module Registry, but it does not list FTP servers as a natively supported module source.
GitHub repositories are a valid and common source for Terraform modules, fetched using Git-based URLs.
Local paths are a valid source for Terraform modules, allowing for organization and reuse of configurations within the same file system.
The Terraform Module Registry is a primary source for discovering and using public and private Terraform modules.
Concept tested: Terraform module sources
Source: https://developer.hashicorp.com/terraform/language/modules/sources
Topics
Community Discussion
No community discussion yet for this question.