I copied, updated and adapted for Canada the example files at mthenw/serverles-go-plugin.
✓ - A proven capacity to google & steal repurpose OSS code -- 100/10 technical skills
- Clone
- Install Serverless Framework via npm
- Run
npm install
in the package directory to get the plugin - Run
sls deploy
from within this folder
You will get an "example" Go plugin Serverless framework project. And the junk that comes with it.
You can head to the Lambda Console page for this function and run it from the "Test" tab.
But keep reading if you want to TURBO.
Open that ~hAcKer^MoDe= command line and run either
serverless invoke -f example
Smooth as butter. Or more for those who do not disregard tradition, the more ascetic fashion is as such:
$ aws lambda invoke --function-name example-service-dev-example response.txt
Now you can't see all those lovely GUIs AWS worked so hard on. Checkmate, AWStheists.