DEV Community

Discussion on: Main-module approach for handling multiple environments in Terraform

Collapse
 
thgsiddhimorajkar profile image
thgsiddhimorajkar

Hello, I am following this method to manage multiple environments. But when i give the source to the module the way it is done here, i get an error - "Error: Unreadable module directory

Unable to evaluate directory symlink: CreateFile modules: The system cannot
find the file specified.

Error: Failed to read module directory

Module directory does not exist or cannot be read."

What might be the issue?

Collapse
 
artisticcheese profile image
GSA • Edited

Same here, some instructions are missing. You shall ru your code with terraform -chdir="./clients/client1" init, by passing directory while execution from root folder, not actually switching to individual client directory