Terraform
terraform get command
Run the terraform get command to download and update
modules declared in the root module.
Usage
Usage: terraform get [options]
The modules are downloaded into a .terraform subdirectory of the current
working directory. Don't commit this directory to your version control
repository.
The get command supports the following options:
-update- If specified, modules that are already downloaded will be checked for updates and the updates will be downloaded if present.-var 'NAME=VALUE'- Sets a value for a single input variable declared in the root module of the configuration. Use this option multiple times to set more than one variable. Refer to Input Variables on the Command Line for more information.-var-file=FILENAME- Sets values for potentially many input variables declared in the root module of the configuration, using definitions from a.tfvarsfile. Use this option multiple times to include values from more than one file. There are several other ways to set values for input variables in the root module, aside from the-varand-var-fileoptions. Refer to Assign values to input variables for more information.-no-color- Disable text coloring in the output.
Variable lifecycle
Terraform evaluates most input variables when it creates a plan, so their values
are not be available during a get operation. Any input variable referenced in a
module block's source or version arguments must declare const = true.
Refer to the variable block
reference documentation for more
information.