Terraform Module Block Syntax: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
=Internal= | =Internal= | ||
* [[Hashicorp_Configuration_Language#Module_Block|Hashicorp Configuration Language]] | * [[Hashicorp_Configuration_Language#Module_Block|Hashicorp Configuration Language]] | ||
=Overview= | |||
<font color=darkgray>TODO: this section must be expanded based on https://www.terraform.io/docs/configuration/modules.html and https://www.terraform.io/docs/modules/index.html</font> | |||
=Example= | =Example= |
Revision as of 20:37, 28 February 2020
External
- https://www.terraform.io/docs/configuration/modules.html
- https://www.terraform.io/docs/modules/index.html
Internal
Overview
TODO: this section must be expanded based on https://www.terraform.io/docs/configuration/modules.html and https://www.terraform.io/docs/modules/index.html
Example
module "some-module" {
source = "terraform-aws-modules/eks/aws"
version = "~> 9.0"
cluster_name = local.cluster_name
vpc_id = var.aws_vpc_id
...
tags = {
Environment = var.environment_name
}
}