Difference between revisions of "Terraform modules"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
 
Modules naming convention: <code>terraform-[[PROVIDER]]-NAME</code>
 
Modules naming convention: <code>terraform-[[PROVIDER]]-NAME</code>
  
 +
== Modules ==
 
* <code>module "[[vpc]]"</code>
 
* <code>module "[[vpc]]"</code>
 
* <code>module "[[iam]]"</code>
 
* <code>module "[[iam]]"</code>
Line 14: Line 15:
 
* <code>module [[route53]]</code>: zones, record (https://registry.terraform.io/modules/terraform-aws-modules/route53/aws/latest)
 
* <code>module [[route53]]</code>: zones, record (https://registry.terraform.io/modules/terraform-aws-modules/route53/aws/latest)
 
* <code>module [[cicd (terraform module)|cicd]]</code> https://registry.terraform.io/modules/cloudposse/cicd/aws/latest
 
* <code>module [[cicd (terraform module)|cicd]]</code> https://registry.terraform.io/modules/cloudposse/cicd/aws/latest
 +
 +
== Examples in [[main.tf]] ==
 +
[[Terraform modules|module]] "[[consul]]" {
 +
  source = "./path/to/you/module"
 +
}
 +
 +
module "yourmodule" {
 +
  source = "[[github.com]]/your-project/terraform-your-templates/modules/yourmodule"
 +
}
 +
  
 
== Related terms ==
 
== Related terms ==

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: