Connecting AWS Lambda to Blockchain.

+2 votes

I have my blockchain in an EC2 instance. I have an AWS lambda function that I want to add an item to a stream. I keep getting this error: "Error: connect ECONNREFUSED".


How do I allow the Lambda IP to access my blockchain?

asked Jul 31, 2017 by Leoul

1 Answer

+3 votes

You will need to determine the IPAddress which AWS lambda uses to call your instance. After you have gotten your IPAddress you need to allow it to access your chain.. 

You will need to add a line to your multichain.conf 


This will allow AWS to access your chain. Also check that you have the relevant firewall permissions set to allow calls to be made to your instance on the ports set in your param.dat when you setup the chain.



answered Aug 1, 2017 by RobertJ