-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
path.module returning absolute paths #22708
Comments
Hi @007, Sorry this is making the upgrade more difficult. From your description the current behavior is what you want. The If you need an absolute path similar to the 0.11 format, there is the |
@jbardin I think you missed |
Hi @007, the 0.12 output above shows a new value of Just to ensure that the resource wasn't attempting to alter the path internally, I also created a lambda function using Are you seeing this after applying with 0.12, or is this during the upgrade process? |
We upgraded everything to 0.12 a while ago. This function was deployed since then, probably with 0.12.4, and it's still showing as an absolute path for another dev's machine when I'm deploying on 0.12.5. |
The new path for this resource is a relative path as expected, and Can you show how the modules is configured, and have there been any recent configuration changes to the module at all? Can you apply these changes and see if there is still a diff after the |
There isn't a diff now, after the module is applied to reflect the updated relative-path. How can the state be in 0.11 form when the transition to 0.12 - including removing all of the |
The only thing I can think of is that an apply was never done on this module+state after the upgrade. I don't see anything to indicate that it would have changed the value more recently, but if you think of any order of operations that could have resulted in the old path being applied, please let us know. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
Can't update to 0.12.8 without coordinating with all other devs. That's a separate problem...
Terraform Configuration Files
Debug Output
Too sensitive / too much, can isolate if required.
Expected Behavior
State file should store relative path to lambda file. (
../modules/lambda/reschedule/build/lambda.zip
)Actual Behavior
State file is storing absolute path to lambda file. (
/Users/OTHERUSER/src/BRANCH/operations/tf/env-staging/.terraform/modules/CRAZY-HASH/build/lambda.zip
)Steps to Reproduce
path.module
relative path for the file.user1
runapply
and complete succesfullyuser2
runplan
References
path.module
during apply is module location from plan #8204The text was updated successfully, but these errors were encountered: