nimblehq / infrastructure-templates

For IaaS and PaaS as codes
MIT License
10 stars 0 forks source link

Fix: generated project can't be run #179

Closed Nihisil closed 1 year ago

Nihisil commented 1 year ago

Issue

There are errors when you are trying to init terraform with generated project.

The problem occurs in the most recent "develop" branch. However, if you generate the project from a released package, the problem does not happen.

Expected

The project that has been generated can be run.

Steps to reproduce

  1. bin/dev generate test-gen
  2. cd shared
  3. terraform init

Errors output:

Initializing modules...
- ecr in
╷
│ Error: Unreadable module directory
│
│ Unable to evaluate directory symlink: lstat modules: no such file or directory
╵

╷
│ Error: Failed to read module directory
│
│ Module directory  does not exist or cannot be read.
╵

╷
│ Error: Unreadable module directory
│
│ Unable to evaluate directory symlink: lstat modules: no such file or directory
╵

╷
│ Error: Failed to read module directory
│
│ Module directory  does not exist or cannot be read.
╵