Since v1.13.0 when terraform_docs hook began to work with Terraform 0.12 syntax, the awk script which is used to do the magic for Terraform 0.12 types does not like variables or outputs named "description".
As a result, this module - https://github.com/terraform-aws-modules/terraform-aws-security-group - can't use this hook.
How to reproduce?
- Clone this repository
- Clone failing terraform-aws-module repository - https://github.com/terraform-aws-modules/terraform-aws-security-group
cd terraform-aws-security-group
pre-commit try-repo ~/cloned-repo/pre-commit-terraform terraform_docs --verbose --all-files
Error:
At 1:17: Unknown token: 1:17 IDENT var.description
@cytopia, could you take a look at this?
Since v1.13.0 when
terraform_docshook began to work with Terraform 0.12 syntax, theawkscript which is used to do the magic for Terraform 0.12 types does not like variables or outputs named "description".As a result, this module - https://github.com/terraform-aws-modules/terraform-aws-security-group - can't use this hook.
How to reproduce?
cd terraform-aws-security-grouppre-commit try-repo ~/cloned-repo/pre-commit-terraform terraform_docs --verbose --all-filesError:
@cytopia, could you take a look at this?