Closed nunofernandes closed 5 years ago
Hi @nunofernandes!
There have been a few bugs fixed in the underlying language parser over the last few months, so perhaps the parser dependency of this library is too old to have some fix for that, while Terraform CLI has been upgraded.
In your dev environment, could you try selecting the latest version of hashicorp/hcl2
in your project's go.mod
and see if the problem goes away?
go get github.com/hashicorp/hcl2@master
If that fixes it, then we could make it permanent by updating the go.mod
in this repository to refer to a newer version.
Yeap.. that fixes it!
$ cd $GOPATH/src/github.com/hashicorp/hcl2 && git pull && GO111MODULE=on go get github.com/hashicorp/terraform-config-inspect
$ cd <MODULEDIR/squid> && terraform-config-inspect
...
* `data.aws_vpc.selected` from `aws`
* `data.template_cloudinit_config.squid` from `template`
* `data.template_file.awscli` from `template`
* `data.template_file.clamav` from `template`
* `data.template_file.ecs_cloud_config` from `template`
* `data.template_file.icinga` from `template`
## Child Modules
* `ecr` from `../terraform-aws-ecr`
* `service` from `../terraform-aws-ecs-service`
Hi,
I'm getting the following error when running
terraform-config-inspect
:The line in question is:
The above code works fine in
terraform plan
andterraform apply
.