This paper is an extension of Hyperledger Sawtooth Setup process as narrated in the Hyperledger website. AMIs for Sawtooth are available from AWS, this instance is much more lightweight and easier to debug.
From the different choices in LightSail, I selected the Bitnami Node.JS image.
The settings below are necessary. Port 8008, 8800 and 4004 are used by Sawtooth for interacting with the REST server, validators and Transaction Processors.
Once the LightSail-instance is up and running, SSH into the instance
$ ssh i ~/Downloads/[Your pem file] bitnami@[xxx.xx.xx.xxx your ip address] $ mkdir sawtooth $ cd sawtooth
We will be running a series of rapid installation steps. If you wish to know more about this part, please read it here
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8AA7AF1F1091A5FD $ sudo add-apt-repository 'deb http://repo.sawtooth.me/ubuntu/1.0/stable xenial universe' $ sudo apt-get update
$ sudo apt-get install -y sawtooth
$ dpkg -l '*sawtooth*'
$ sawtooth keygen $ sawset genesis $ sudo -u sawtooth sawadm genesis config-genesis.batch
$ sudo sawadm keygen $ sudo -u sawtooth sawtooth-validator -vv
Ensure you bind on the Internal IP address and not the external one.
$ sudo -u sawtooth sawtooth-rest-api -v --bind xxx.xx.xx.xxx:8008Now check either with the Browser or with cURL
http://[external ip address]:8008/blocks
Copyrights and Trademarks acknowledged. Hyperledger Composer - copyright of the Linux Foundation NodeJS is a copyright of NodeJS Foundation and Trademark of Joyent Inc Intel is a Trademark of Intel Corporation IBM is a Trademark of International Business Machines