module

Module remotely sources other modules and adds them to the tree

Example

param "message" {
  default = "Hello from another module!"
}

module "basic.hcl" "basic" {
  params = {
    message = "{{param `message`}}"
  }
}

Parameters

  • params (map of string to anything)

Params is a map of strings to anything you’d like. It will be passed to the called module as the default values for the params there.