0

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 ?

MonoThreaded
  • 11,429
  • 12
  • 71
  • 102
Gurunath
  • 341
  • 3
  • 17

2 Answers2

0

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.

Marcin
  • 215,873
  • 14
  • 235
  • 294
  • Thanks for your response. I am getting empty response, $ aws managedblockchain list-nodes --network-id n-zzz --member-id m-zzzz --region us-east-1 { "Nodes": [] } Should I follow step 5 before step 3 and step 4. [ https://docs.aws.amazon.com/managed-blockchain/latest/managementguide/get-started-create-client.html ] – Gurunath Jul 22 '20 at 05:32
  • @Gurunath Are you sure that `--network-id n-zzz --member-id m-zzzz` are correct? Maybe they are in different region or account that you try, or don't exist? – Marcin Jul 22 '20 at 05:41
  • Yes. I am getting output for list-members and get-member. `aws managedblockchain list-members --network-id n-zzz --region us-east-1 ==> {"Members": [{"Status": "AVAILABLE","CreationDate": "2020-07-21T09:02:20.106Z","IsOwned": true,"Id": "m-zzzz","Name": "org1"}]}` – Gurunath Jul 22 '20 at 05:48
  • @Gurunath So maybe you don't have any nodes. Have you used [create-node](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/managedblockchain/create-node.html) to make some? – Marcin Jul 22 '20 at 05:50
  • No. That is why I am asking, should I follow step 5 in this document [https://docs.aws.amazon.com/managed-blockchain/latest/managementguide/get-started-create-client.html] before step 3 and step 4. – Gurunath Jul 22 '20 at 05:53
  • @Gurunath That would be my try. This would also explain why `list-nodes` returns empty list - there are no nodes to return. – Marcin Jul 22 '20 at 06:04
0

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

Gurunath
  • 341
  • 3
  • 17