Difference between revisions of "Terraform modules"

From wikieduonline
Jump to navigation Jump to search
Line 16: Line 16:
 
== Examples in [[main.tf]] ==
 
== Examples in [[main.tf]] ==
 
  [[Terraform modules|module]] "[[consul]]" {
 
  [[Terraform modules|module]] "[[consul]]" {
   source = "./path/to/you/module"
+
   [[source]] = "./path/to/you/module"
 
  }
 
  }
  

Revision as of 09:53, 8 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: