Serverless Groovy Scripts
- Install Java 8 and *Groovy - I highly recommend using SDKMAN to install any JVM-related packages.
- Install NodeJS and the Serverless Framework.
- Amazon Web Services account.
You also need to set up your AWS credentials/profiles in the ~/.aws/credentials
file.
To build, run npm i && sls package
. This will download the dependencies, compile the scripts and create an uber jar
.
To deploy, simply run sls deploy
.
To invoke the function, run:
sls invoke -f hello -d '{"message" : "hi!"}'