Deploy Hyperledger Besu on AWS

Permissioned-Network/
├── Node-1
│ ├── data
└── Node-2
├── data
besu --data-path=data public-key export-address --to=data/nodeAddress1
{ 
“config”:{
“chainId”:1981,
“constantinoplefixblock”: 0,
“clique”:{
“blockperiodseconds”:15,
“epochlength”:30000
}
},
“coinbase”:”0x0000000000000000000000000000000000000000",
“difficulty”:”0x1", “extraData”:”0x0000000000000000000000000000000000000000000000000000000000000000<Node 1 Address>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
“gasLimit”:”0xa00000",
“mixHash”:”0x0000000000000000000000000000000000000000000000000000000000000000",
“nonce”:”0x0",
“timestamp”:”0x5c51a607",
“alloc”: {
“fe3b557e8fb62b89f4916b721be55ceb828dbd73”: {
“balance”: “0xad78ebc5ac6200000”
},
“627306090abaB3A6e1400e9345bC60c78a8BEf57”: {
“balance”: “90000000000000000000000”
},
“f17f52151EbEF6C7334FAD080c5704D77216b732”: {
“balance”: “90000000000000000000000”
}
},
“number”:”0x0",
“gasUsed”:”0x0", “parentHash”:”0x0000000000000000000000000000000000000000000000000000000000000000"
}
accounts-allowlist=["0xfe3b557e8fb62b89f4916b721be55ceb828dbd73", "0x627306090abaB3A6e1400e9345bC60c78a8BEf57"]nodes-allowlist=[]
besu --data-path=data --genesis-file=../cliqueGenesis.json  --permissions-nodes-config-file-enabled --permissions-accounts-config-file-enabled --rpc-http-enabled --rpc-http-api=ADMIN,ETH,NET,PERM,CLIQUE --host-allowlist=”*” --rpc-http-cors-origins=”*” --p2p-port=30303 --rpc-http-port=8545
besu --data-path=data --genesis-file=../cliqueGenesis.json  --permissions-nodes-config-file-enabled --permissions-accounts-config-file-enabled --rpc-http-enabled --rpc-http-api=ADMIN,ETH,NET,PERM,CLIQUE --host-allowlist=”*” --rpc-http-cors-origins=”*” --p2p-port=30304 --rpc-http-port=8546
enode://<id>@<host:port>[?discport=<port>]
curl -X POST --data '{"jsonrpc":"2.0","method":"perm_addNodesToAllowlist","params":[["<EnodeNode1>","<EnodeNode2>","<EnodeNode3>"]], "id":1}' http://127.0.0.1:8545
curl -X POST — data ‘{“jsonrpc”:”2.0",”method”:”perm_addNodesToAllowlist”,”params”:[[“<EnodeNode1>”,”<EnodeNode2>”,”<EnodeNode3>”]], “id”:1}’ http://127.0.0.1:8546
curl -X POST --data '{"jsonrpc":"2.0","method":"admin_addPeer","params":["<EnodeNode1>"],"id":1}' http://127.0.0.1:8546
AWS security group screenshot
besu --genesis-file=cliqueGenesis.json --data-path=nodeDataPath public-key export --to=bootnode
besu --genesis-file=cliqueGenesis.json --data-path=nodeDataPath --bootnodes
--bootnodes=<"bootnode enode">
2022–04–06 08:51:36.005+00:00 | EthScheduler-Workers-3 | INFO | PersistBlockTask | Imported #2,211 / 0 tx / 0 om / 0 (0.0%) gas / (0x35fc3b6de3255ef7c595a93a3c79c0b46c9be5d211f706923
42afa0c2c08873b) in 0.000s. Peers: 1
Screenshot on Node-2
Screenshot on Node-1
http://<public_ip>:8545
$ echo > /dev/tcp/<node-1_private_ip>/8545 && echo “port is open” 
-bash: connect: Connection refused
-bash: /dev/tcp/<node-1_private_ip>/8545: Connection refused
$ echo > /dev/tcp/127.0.0.01/8545 && echo “port is open” 
port is open
Listening on 127.0.0.1:8545
--rpc-http-host=0.0.0.0

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store