When I try to import truffle-hdwallet-provider on AWS Lambda, the process hangs.
Example:
import fs from 'fs';
import path from 'path';
import Web3 from 'web3';
console.log('contract initialization1');
import HDWalletProvider from 'truffle-hdwallet-provider';
console.log('contract initialization2');
contract initialization1 gets printed while contract initialization2 not.
Locally it works ok.
I tried changing timeout time and other parameters on AWS, but nothing solved the problem so I'm pretty sure the problem is related to the package itself.
When I try to import truffle-hdwallet-provider on AWS Lambda, the process hangs. Example:
contract initialization1
gets printed whilecontract initialization2
not.Locally it works ok.
I tried changing timeout time and other parameters on AWS, but nothing solved the problem so I'm pretty sure the problem is related to the package itself.
Any suggestions?
Thanks