Skip to content

Commit 1593a83

Browse files
author
Simon Goldberg
committed
update readme regarding secrets manager
1 parent f83fdef commit 1593a83

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/bitcoin-core/README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,14 @@ sudo docker exec -it bitcoind bitcoin-cli getblockchaininfo
172172
---
173173
### Secure RPC Access with AWS Secrets Manager
174174

175-
For a client to securely interact with the Bitcoin Core RPC endpoint from a private subnet within your isolated VPC environment, AWS Secrets Manager is leveraged for credential storage and retrieval.
176-
177-
**Important**: Ensure that you execute the following commands from within a private subnet in the Bitcoin Core Node VPC. A VPC CloudShell environment is suitable for testing purposes.
175+
For a client to securely interact with the Bitcoin Core RPC endpoint from a subnet within your VPC environment, AWS Secrets Manager is leveraged for credential storage and retrieval.
178176

179177
#### Retrieving Credentials
180-
First, retrieve the RPC credentials from AWS Secrets Manager:
178+
First, retrieve the RPC credentials from AWS Secrets Manager in your CloudShell tab:
181179

182180
```
183181
export BTC_RPC_AUTH=$(aws secretsmanager get-secret-value --secret-id bitcoin_rpc_credentials --query SecretString --output text)
182+
echo "BTC_RPC_ATH=$BTC_RPC_AUTH"
184183
```
185184

186185
#### Single node RPC Call using credentials
@@ -190,7 +189,11 @@ To make an RPC call to a single Bitcoin node, run the following command to retri
190189
export BITCOIN_NODE_IP=$(jq -r '.SingleNodeBitcoinCoreStack.BitcoinNodePrivateIP' single-node-outputs.json)
191190
echo "BITCOIN_NODE_IP=$BITCOIN_NODE_IP"
192191
```
193-
Copy output from the last `echo` command with `BITCOIN_NODE_IP=<internal_IP>` and open [CloudShell tab with VPC environment](https://docs.aws.amazon.com/cloudshell/latest/userguide/creating-vpc-environment.html) to access internal IP address space. Paste `BITCOIN_NODE_IP=<internal_IP>` into the new CloudShell tab. Then query the node:
192+
Copy output from the last `echo` command with `BITCOIN_NODE_IP=<internal_IP>` and open [CloudShell tab with VPC environment](https://docs.aws.amazon.com/cloudshell/latest/userguide/creating-vpc-environment.html) to access internal IP address space. Paste `BITCOIN_NODE_IP=<internal_IP>` into the new CloudShell tab.
193+
194+
Additionally, copy the output from the first `echo` command with `BTC_RPC_ATH=<rpc_credentials>` into the CloudShell VPC environment.
195+
196+
Then query the node:
194197

195198
```
196199
curl --user "$BTC_RPC_AUTH" \

0 commit comments

Comments
 (0)