Skip to content

[Bug] Using variable on module version -> Error: Variables not allowed: Variables may not be used here #860

@pureiboi

Description

@pureiboi

Describe the bug

When using variable on terraform module version, the error is resulted

Error: Variables not allowed: Variables may not be used here. (and 1 other messages)

How can we reproduce it?

Using the following manifest

`locals {
module_version = "9.17.0"
}

module "aws_lb" {
source = "terraform-aws-modules/alb/aws"

version = local.module_version

}
`

Command
terraform-docs markdown ./module --recursive --recursive-include-main=false --recursive-path=./

Log
Error: Variables not allowed: Variables may not be used here. (and 1 other messages)

Environment information

terraform-docs 0.20.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions