Terraform Module Block Syntax: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Hashicorp Configuration Language") |
|||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Hashicorp_Configuration_Language#Module_Block|Hashicorp Configuration Language]] | * [[Hashicorp_Configuration_Language#Module_Block|Hashicorp Configuration Language]] | ||
=Example= | |||
<syntaxhighlight lang='json'> | |||
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 | |||
} | |||
} | |||
</syntaxhighlight> |
Revision as of 20:35, 28 February 2020
Internal
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
}
}