From 2644ecfa420ad7ddf2ced260d58e9780b0176bb5 Mon Sep 17 00:00:00 2001 From: "Lu,Wei-Chih" Date: Mon, 26 Feb 2024 16:05:57 +0800 Subject: [PATCH] Update README.md 1. add `npm i --save-dev @types/node` command to resolve error while running `npx cdk deploy solana-common` command. 2. Retrieve EC2 Private IP Address instead of Public IP Address Signed-off-by: Lu,Wei-Chih --- lib/solana/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/solana/README.md b/lib/solana/README.md index f0e91b60..720c8135 100644 --- a/lib/solana/README.md +++ b/lib/solana/README.md @@ -129,6 +129,7 @@ Create your own copy of `.env` file and edit it to update with your AWS Account ```bash pwd # Make sure you are in aws-blockchain-node-runners/lib/solana + npm i --save-dev @types/node npx cdk deploy solana-common ``` @@ -149,7 +150,7 @@ Create your own copy of `.env` file and edit it to update with your AWS Account ```bash INSTANCE_ID=$(cat single-node-deploy.json | jq -r '..|.nodeinstanceid? | select(. != null)') - NODE_INTERNAL_IP=$(aws ec2 describe-instances --instance-ids $INSTANCE_ID --query 'Reservations[*].Instances[*].PublicIpAddress' --output text) + NODE_INTERNAL_IP=$(aws ec2 describe-instances --instance-ids $INSTANCE_ID --query 'Reservations[*].Instances[*].PrivateIpAddress' --output text) # We query token balance this account: https://solanabeach.io/address/9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM curl http://$NODE_INTERNAL_IP:8899 -X POST -H "Content-Type: application/json" \ --data '{ "jsonrpc": "2.0", "id": 1, "method": "getBalance", "params": ["9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"]}'