An AWS Lambda Layer for the Ethereum web3.js Javascript API. It makes use of the lambci/docker-lambda images to replicate the live AWS Lambda environment and build the web3.js dependencies for said environments. It can then be used as a dependency bundle.
You'll need to have Docker installed. You can opt to use Serverless for deployment or simply run the build.sh
file manually and upload the resulting layer/nodejs
folder as a ZIP archive to the AWS online console.
sls deploy
Check out the example folder for a simple use case of this layer in a Serverless function.
This dependency bundle will not be available locally to Serverless. If you need to test locally, install the web3.js npm package as a development dependency.