Difference between revisions of "Terraform modules"

From wikieduonline
Jump to navigation Jump to search
Line 25: Line 25:
 
== Related commands ==
 
== Related commands ==
 
* <code>[[terraform init]]</code>
 
* <code>[[terraform init]]</code>
 +
* <code>[[terraform init -upgrade]]</code>
 
* <code>[[terraform get]]</code>
 
* <code>[[terraform get]]</code>
 
* <code>[[terraform get -update]]</code>
 
* <code>[[terraform get -update]]</code>

Revision as of 12:09, 17 February 2022

Modules naming convention: terraform-PROVIDER-NAME

Modules

Examples in main.tf

module "consul" {
  source = "./path/to/you/module"
}
module "yourmodule" {
  source = "github.com/your-project/terraform-your-templates/modules/yourmodule"
}

Related commands

Related terms

See also

Advertising: