Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
0.12.x changed how
${path.module}
is rendered, and sincepython-terraform
isn't explicitly passing a path to the terraform binary, terraform is using the implied value of.
instead of the full path cwd.This patch explicitly passes the path to the terraform binary when
Popen()
is called, which restores the old behavior in <0.11.x. Basically, it stopschdir()
into the terraform root directory and passes the directory to terraform instead.This was a drop in replacement in my testing that fixed the problem outright. The only other things I had to change in my code were paths being passed to
backend_config
since terraform is being called from a different directory now (the root of the project rather than the terraform root).It's very possible this breaks other peoples configurations, and this problem was unique to my workflow. If that's the case feel free to reject the patch. Just passing up what worked for me in case it can help others.
Thank you for your time and attention