Step 3: Create a Peer Node in Your Membership - Amazon Managed Blockchain (AMB)

Step 3: Create a Peer Node in Your Membership

Now that your network and the first member are up and running, you can use the AMB Access console or the AWS CLI to create a peer node. Your member's peer nodes interact with other members' peer nodes on the blockchain to query and update the ledger, and store a local copy of the ledger.

Use one of the following procedures to create a peer node.

  1. Open the AMB Access console at https://console.aws.amazon.com/managedblockchain/.

  2. Choose Networks, select the network from the list, and then choose View details.

  3. Select a Member from the list, and then choose Create peer node.

  4. Choose configuration parameters for your peer node according to the guidelines in Work with Hyperledger Fabric Peer Nodes on AMB Access, and then choose Create peer node.

  • Use the create-node command, as shown in the following example. Replace the value of --network-id, --member-id, and AvailabilityZone as appropriate.

    [ec2-user@ip-192-0-2-17 ~]$ aws managedblockchain create-node \ --node-configuration '{"InstanceType":"bc.t3.small","AvailabilityZone":"us-east-1a"}' \ --network-id n-MWY63ZJZU5HGNCMBQER7IN6OIU \ --member-id m-K46ICRRXJRCGRNNS4ES4XUUS5A

    The command returns output that includes the peer node's NodeID, as shown in the following example:

    { "NodeId": "nd-6EAJ5VA43JGGNPXOUZP7Y47E4Y" }