Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module directory main.tf does not exist or cannot be read. #66

Open
RidaAyed opened this issue Oct 20, 2021 · 1 comment
Open

Module directory main.tf does not exist or cannot be read. #66

RidaAyed opened this issue Oct 20, 2021 · 1 comment

Comments

@RidaAyed
Copy link

I can't read the main.tf

e.g. Expected is returned value, though got:
$ ~/go/bin/terraform-config-inspect --json | grep FarmProjects > null

Testing with grep works:
$ 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

{
  "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."
    }
  ]
}
@adyavanapalli
Copy link

@RidaAyed Did you ever figure out the issue? I'm seeing the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants