Terraform Module Block Syntax: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
=External=
* https://www.terraform.io/docs/configuration/modules.html
=Internal=
=Internal=
* [[Hashicorp_Configuration_Language#Module_Block|Hashicorp Configuration Language]]
* [[Hashicorp_Configuration_Language#Module_Block|Hashicorp Configuration Language]]

Revision as of 20:36, 28 February 2020

External

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
  }
}