nerdexam
HashiCorp

TA-002-P · Question #102

Terraform init can indeed be run only a few times, because, every time terraform init will initialize the project , and download all plugins from the internet repository , regardless of whether they…

The correct answer is B. False. Re-running init with modules already installed will install the sources for any modules that were added to configuration since the last init, but will not change any already-installed modules. Use - upgrade to override this behavior, updating all modules to the latest available…

Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)

Question

Terraform init can indeed be run only a few times, because, every time terraform init will initialize the project , and download all plugins from the internet repository , regardless of whether they were present or not , and this increases the waiting time

Options

  • ATrue
  • BFalse

How the community answered

(48 responses)
  • A
    6% (3)
  • B
    94% (45)

Explanation

Re-running init with modules already installed will install the sources for any modules that were added to configuration since the last init, but will not change any already-installed modules. Use - upgrade to override this behavior, updating all modules to the latest available source code.

Topics

#terraform init#plugin management#CLI behavior#caching

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice