Open RidaAyed opened 2 years ago
I can't read the main.tf
e.g. Expected is returned value, though got: $ ~/go/bin/terraform-config-inspect --json | grep FarmProjects > null
$ ~/go/bin/terraform-config-inspect --json | grep FarmProjects
Testing with grep works: $ grep FarmProjects main.tf -A 2 -B 2
$ grep FarmProjects main.tf -A 2 -B 2
resource "aws_dynamodb_table" "projects_table" { name = "FarmProjects" billing_mode = "PAY_PER_REQUEST" hash_key = "ProjectId"
After all it seems main.tf isn't processed at all: ~/go/bin/terraform-config-inspect --json main.tf
~/go/bin/terraform-config-inspect --json main.tf
{ "path": "main.tf", "variables": {}, "outputs": {}, "required_providers": {}, "managed_resources": {}, "data_resources": {}, "module_calls": {}, "diagnostics": [ { "severity": "error", "summary": "Failed to read module directory", "detail": "Module directory main.tf does not exist or cannot be read." } ] }
@RidaAyed Did you ever figure out the issue? I'm seeing the same thing.
I can't read the main.tf
e.g. Expected is returned value, though got:
$ ~/go/bin/terraform-config-inspect --json | grep FarmProjects
> nullTesting with grep works:
$ grep FarmProjects main.tf -A 2 -B 2
After all it seems main.tf isn't processed at all:
~/go/bin/terraform-config-inspect --json main.tf