2016-10-13 08:48:02 +02:00
..
2016-10-12 09:41:58 +02:00
2016-10-13 08:48:02 +02:00
2016-10-12 09:41:58 +02:00

Hello World in Python

Make sure serverless is installed. See installation guide

1. Deploy

serverless deploy or sls deploy. sls is shorthand for the serverless CLI command

2. Invoke deployed function

serverless invoke --function helloWorld or serverless invoke -f helloWorld

-f is shorthand for --function

In your terminal window you should see the response from AWS Lambda

{
  "message": "Hello World"
}

Congrats you have just deployed and ran your hello world function!