-
Notifications
You must be signed in to change notification settings - Fork 47
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
template: value does not honour absolute paths #207
Comments
Hey while you're digging into this would it be possible to make the 'templates' directory optional? I'd like to be able to just use the current directory as my template relative path and not have to symlink templates to the current directory for this to work. |
What's the use case for using absolute paths vs. relative paths? Sorry I'm trying to understand what problem you're trying to solve as there may be a better solution. |
We have a directory with some logic that generates CFN templates to an output folder. We'd like to keep the stack master config file in this directory too so the templates would be relative to this location:
... for example. As far as absolute paths, this is a less likely scenario in the real world but when I was playing around with stack master at first I just wanted to reference a template from a random location on my machine and didn't expect to see the current directory prepended to the absolute path. |
Stack Master is a little opinionated about how you should structure your directory. This I think helps people to avoid having to make a decision about where to put their templates and perhaps regret it later. Relative paths do work from my experience, if there's a problem with them please file a new issue. For absolute paths I'd be happy to support them if a PR is raised, but I don't consider this a current priority to fix given the reasons above. Let me know if I can help any further. |
If I do something like this:
It will take the current directory (of stack_master.yml) and append
/absolute/path/to/template.yml
The text was updated successfully, but these errors were encountered: