How to get MyPeerNodeEndpoint | aws managedblockchain get-node | step 3

71 views Asked by At

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 ?

2

There are 2 answers

6
Marcin On

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.

0
Gurunath On

It works for me If I do step 5 before step 3 and step 4 in this this guide