This is the sample, using NEMLibrary on AWS lambda.
- AWS Lambda runtime: Node.js 8.10
- apex
- Setting AWS credentials
- see: http://apex.run/
- Setting following environment variable on
functions/SendXem/function.json
"environment": { "PRIVATE_KEY": "YOUR_PRIVATE_KEY", "TO_ADDRESS": "DESTINATION_ADDRESS" }
- Deploy with follwing command
% apex deploy
- Run with following command
% echo -n '{}' | apex invoke SendXem