Module remotely sources other modules and adds them to the tree


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

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


Here are the HCL fields that you can specify, along with their expected types and restrictions:

  • 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.