-
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
File provisioner inside a module doesn't support relative path? #14798
Comments
this issue is causing ugly workarounds where we need to keep track of where the location where the module is called from. Any updates? |
Still can't copy folders to instances in 2018. This not work:
But this is ok
|
Hello! 🤖 This issue relates to an older version of Terraform that is no longer in active development, and because the area of Terraform it relates to has changed significantly since the issue was opened we suspect that the issue is either fixed or that the circumstances around it have changed enough that we'd need an updated issue report in order to reproduce and address it. If you're still seeing this or a similar issue in the latest version of Terraform, please do feel free to open a new bug report! Please be sure to include all of the information requested in the template, even if it might seem redundant with the information already shared in this issue, because the internal details relating to this problem are likely to be different in the current version of Terraform. Thanks! |
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. |
inside a module I have the following resource:
Where
${path.module}
is/Users/user/dev/search-config/terraform-templates/env-dev/search-elastic/.terraform/modules/8c670c9637338be7fc134e420c6ec98b
, which is a link to/Users/leyboan1/dev/search-config/terraform-templates/modules/search-elastic
; I want that source to be/Users/user/dev/search-config/elastic-search-schema/indices
.When executing it I am getting an error:
It incorrectly expands source path (${path.module}/../../../elastic-search-schema/indices/) as
/Users/user/dev/search-config/terraform-templates/env-dev/search-elastic/elastic-search-schema/indices/
when it should be/Users/user/dev/search-config/elastic-search-schema/indices/appstore_applications.json
When I output
${path.module}/../../../elastic-search-schema/indices/
as a variable, it correctly shows/Users/leyboan1/dev/search-config/terraform-templates/env-dev/search-elastic/.terraform/modules/8c670c9637338be7fc134e420c6ec98b/../../../elastic-search-schema/indices
which points to the correct folder/Users/leyboan1/dev/search-config/elastic-search-schema/indices/
Any ideas?
The text was updated successfully, but these errors were encountered: