-
Notifications
You must be signed in to change notification settings - Fork 875
Support terraform resources outside the given template directory #5677
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
Comments
@denbeigh2000 could you create a Terraform module to accomplish this instead? |
that'd work if i were willing to split the module out into another repository and import it, but it leaves a few shortcomings:
|
Ahh, I see. I wonder if it'd be best to upload the entire directory as a template, and be able to specify a subdirectory to execute out of? |
that's totally reasonable for the linked case, but there are some valid use cases where this doesn't make sense e.g., would it be possible to resolve |
What if the tarring process traversed symlinks? |
I'd have no issue with making a few relative symlinks to address this 👍 |
After #5720 is in you'll be able to do:
|
Thank you very, very much 🙏 |
I like this feature, thanks @denbeigh2000 |
As per my understanding, doing a tar of directory to push template is the only option to follow symlinks as |
That's correct. In general we don't want to go feature-to-feature with |
Good, it does work with this way:
Thanks! |
When creating a Coder template, I would like to reference local files outside the given template directory.
Context: I want to re-use common files/terraform modules between multiple templates in a repository. To do this right now, one needs to copy-paste common resources into each template's directory, which is inconvenient and increases the risk of introducing skew.
A practical example: These two templates are near-identical, yet it's not feasible to share common resources between then
The text was updated successfully, but these errors were encountered: