Skip to content
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

Open
et304383 opened this issue Feb 1, 2018 · 4 comments
Open

template: value does not honour absolute paths #207

et304383 opened this issue Feb 1, 2018 · 4 comments

Comments

@et304383
Copy link

et304383 commented Feb 1, 2018

If I do something like this:

stack:
  us-east-1:
    stack-name:
      template: /absolute/path/to/template.yml

It will take the current directory (of stack_master.yml) and append /absolute/path/to/template.yml

@et304383
Copy link
Author

et304383 commented Feb 6, 2018

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.

@patrobinson
Copy link
Contributor

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.

@et304383
Copy link
Author

et304383 commented Feb 7, 2018

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:

template: output/my_template.yml

... 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.

@patrobinson
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants