Hello,
I'm replying to myself in order to help others since there is not much of documentation into matter of Runtime.
Issue with external modules is that they are all installed and added only locally. Example if you execute
"npm install form-data --save" it will only download the library on your local environment. But the action you are writing is uploaded to the Server.
For this reason after many try and errors here is what has worked for me, execute this on the command com:
aio app buld
aio app deploy
aio app run
The last step will give URL where the server will execute actions. When you execute the action on the server side, you can check the result using :
wsk activation list -- This will give all of the actions executed
Get the activation Id and check the result example:
wsk activation get e93b4aXXXXXXcb51b87ff
I'm not sure that my explanation is correct, but that is working for me. If anyone else has something to add it could will be useful for others. As mentioned already it's not many information about this product.