Create serverless template
mrserverless opened this issue · 8 comments
So that users can just run:
serverless create --template aws-golang-shim
and
serverless create --template aws-golang-net
Rather than copy and paste form this sample project
I looked into this and it seems easy to do, we just need to insert the content of this repo (with maybe minor changes) at https://github.com/serverless/serverless/tree/master/lib/plugins/create/templates
It turns out the proper place for such community templates is https://github.com/serverless/examples.
We should create a PR there.
Working on a PR now to have it mentioned there.
In the meantime I noticed that this already works, and we could document it as installation method in our readme:
serverless install -u https://github.com/yunspace/serverless-golang -n my-golang-project
The PR was already raised, see serverless/examples#133
Awesome, in that case I will update the serverless examples when my changes are merged
#7 is merged and there are now 2 ways to install serverless-golang for either net or event approach. See README for more details. Closing this and will follow up with serverless/examples#133 separately.