-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
More flexible install from template feature #5404
Comments
While most ideas for features for serverless can be prototyped and proven out as a plugins, this one's a bit more sticky as it not a plugin that you install and run inside a project but one that creates a project. |
Is this sort of like a mvn archetype or a yeoman generator feature? I'd really like that, too. Either way, the CLI could use some loving to get it up to par with other project creation CLIs. |
Coming from AWS SAM which has Cookiecutter support (https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-customizing-starter-pipelines.html) I can say it really helps to DX and internal tool adoption with a feature like this. The project name is likely the most useful and could be dynamic applied to tags, package name, etc. |
I have learned that since the name of the service is parameterized that you can use something like |
Hey @metaskills, thanks a lot for feedback here. How would you imagine supporting something like that, were you thinking about having some kind of generic support for templates that can be filled during project setup, Cookiecutter-style? I'm wondering how much of it should be a responsibility of the Framework (currently it's possible to substitute |
Thanks for asking. I'm thinking the |
This is a Feature Proposal
Description
For feature proposals:
I use serverless install with a custom template alot. I find the parameterization of just the name of the service.
I would like a way to drive more parameterization so that I could have less manual replacement to do after the template is cloned.
I propose some form of metadata file that would exist in the remote template that serverless could read in, prompt users on install for values, the traverse the files in the local template and apply those values where templated with placeholders.
This would be a relatively big ( but nice ) change to how templates are installed because the single name parameter is replaced with a hardcoded regex in a hard coded file. This feature would need something a bit more appropriate for placeholder style templating.
Additional Data
The text was updated successfully, but these errors were encountered: