'How to get MyPeerNodeEndpoint | aws managedblockchain get-node | step 3
I am trying to setup hyperledger fabric blockchain network using amazon managed blockchain following this guide. In the step 3, I need MyPeerNodeEndpoint
to create docker_compose_cli.yaml
. For this, I executed this command aws managedblockchain get-node --network-id n-zzz --member-id m-zzzz
. It reports the following error,
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument --node-id is required
Where can I find this node-id
?
Solution 1:[1]
Assuming that --network-id n-zzz --member-id m-zzzz
are correct, you can get the list of nodes available using list-nodes:
aws managedblockchain list-nodes --network-id n-zzz --member-id m-zzzz
The output of the command will contain "configuration properties for each node", one of which is the node-id.
Solution 2:[2]
It works for me If I do step 5 before step 3 and step 4 in this this guide
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Gurunath |