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

Investigate and fix makefiles structure for copying .tf files #93

Open
hazim1093 opened this issue Feb 28, 2017 · 0 comments
Open

Investigate and fix makefiles structure for copying .tf files #93

hazim1093 opened this issue Feb 28, 2017 · 0 comments

Comments

@hazim1093
Copy link
Member

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

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

No branches or pull requests

1 participant