Terraform Module Block Syntax

From NovaOrdis Knowledge Base
Revision as of 20:36, 28 February 2020 by Ovidiu (talk | contribs)
Jump to navigation Jump to search

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