Install Apex to manage your deployments to AWS Lambda
Copy project.example.json
to project.json
and fill it with your roles and credentials.
Then execute these commands to deploy Lambda functions:
npm install && npm run lambda:deploy
Then creating API by doing:
npm run apigateway:create
Everytime you need to update your API:
npm run apigateway:update
Now, you can try requesting your API like this:
curl https://<id>.execute-api.<region>.amazonaws.com/dev/hello/John