Difference between revisions of "Terraform modules"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
* https://learn.hashicorp.com/tutorials/terraform/module
 
* https://learn.hashicorp.com/tutorials/terraform/module
* [[Terraform registry]]: https://registry.terraform.io/browse/modules
 
  
 
Modules naming convention: <code>terraform-[[PROVIDER]]-NAME</code>
 
Modules naming convention: <code>terraform-[[PROVIDER]]-NAME</code>
Line 35: Line 34:
 
* <code>[[terraform get -update]]</code>
 
* <code>[[terraform get -update]]</code>
 
* [[Error: Module not installed]]
 
* [[Error: Module not installed]]
 +
* [[Terraform registry]]: https://registry.terraform.io/browse/modules
  
 
== See also ==
 
== See also ==

Revision as of 14:39, 19 October 2021

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 terms

See also

Advertising: