You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we use makefiles to initialize the build directory. Terraform files (.tf) and other files like user-data, policy etc are copied to the build directory via makefiles.
In some scenarios, terraform fails due to no such module or similar error that is usually because the specific tf file is not present in the build directory.
Example scenario:
User A creates an environment on his machine, included storage, network, and various modules.
User B, adds a new module to the environment on his own machine. He calls make for that module only, terraform updates the state file, so user B has the same state as of user A and as of the infrastructure it self, but user B's build directory does not have .tf files for storage, network and etc as he did not call make on those modules (storage, network etc). So terraform fails with error no such module.
Solution:
Run make plan_env_name and the make files will copy all the files to the build directory.
Investigate this issue and makefiles structure further to find such issues and solve them
The text was updated successfully, but these errors were encountered:
Currently we use makefiles to initialize the
build
directory. Terraform files (.tf) and other files like user-data, policy etc are copied to the build directory via makefiles.In some scenarios, terraform fails due to
no such module
or similar error that is usually because the specific tf file is not present in the build directory.Example scenario:
User A creates an environment on his machine, included storage, network, and various modules.
User B, adds a new module to the environment on his own machine. He calls
make
for that module only, terraform updates the state file, so user B has the same state as of user A and as of the infrastructure it self, but user B'sbuild
directory does not have .tf files for storage, network and etc as he did not call make on those modules (storage, network etc). So terraform fails with error no such module.Solution:
Run
make plan_env_name
and the make files will copy all the files to the build directory.Investigate this issue and makefiles structure further to find such issues and solve them
The text was updated successfully, but these errors were encountered: