Skip to content

Conversation

@jaxom-widby-nttd
Copy link

@jaxom-widby-nttd jaxom-widby-nttd commented Nov 4, 2025

When running through some of the testing/migrating over a repo to utilize this I ran across a couple of small callouts that took me a bit off track:

  1. When running tfmodule/lint I was getting errors as the tflint call had 2 assumed locations for the .tflint config file. Other scripting places this within the directory for the repo however either I am at a different depth than expected or there is some handler with the devcontainer that didnt work as expected. Simplifying the call for this the update simply makes it attempt to run from the relative called directory.

  2. plan_terraform_module was attempting to use a test.tfvars file that wasnt present in the examples directories I was working with (which did have terraform.tfvars). Slight update to have an existence check ahead of utilizing the customized variable with fallback to default. (also outputs to console for debugging).

When calling the tfmodule/lint function I kept getting errors based on the sym link placement and this function relative to the directory I was running from. Instead this should handle the relative nature of the directories a little more naturally.

Signed-off-by: jaxom-widby-nttd <jaxom.widby@nttdata.com>
@jaxom-widby-nttd jaxom-widby-nttd requested a review from a team as a code owner November 4, 2025 01:09
Update Makefile fallback handling of plan_terraform_module variable call.

Previously this required that there was a file defined within this variable context that is different than the default value for the parameter. This update checks for the existence of that file ahead of run, if it does exist it will honor it else leave it out.

Signed-off-by: jaxom-widby-nttd <jaxom.widby@nttdata.com>
@jaxom-widby-nttd jaxom-widby-nttd changed the title Update makefile to handle relative call location for file placement. QOL fixes to Makefile (relative file calling and test.tfvars handling) Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants