File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ We will use AWS Cloud9 to execute the subsequent commands. Follow the instructio
113
113
114
114
3 . Configure your setup
115
115
116
- Create your own copy of ` .env ` file and edit it:
116
+ Create your own copy of ` .env ` file and edit it to update with your AWS Account ID and Region :
117
117
``` bash
118
118
# Make sure you are in aws-blockchain-node-runners/lib/solana
119
119
cd lib/solana
@@ -236,7 +236,7 @@ The result should be like this (the actual balance might change):
236
236
sudo cat /var/log/cloud-init-output.log
237
237
```
238
238
239
- 3 . How can I restart the Solana serice ?
239
+ 3 . How can I restart the Solana service ?
240
240
241
241
``` bash
242
242
export INSTANCE_ID=$( cat single-node-deploy.json | jq -r ' ..|.node-instance-id? | select(. != null)' )
Original file line number Diff line number Diff line change @@ -346,9 +346,11 @@ sudo chmod +x /opt/syncchecker.sh
346
346
(crontab -l; echo " */1 * * * * /opt/syncchecker.sh >/tmp/syncchecker.log 2>&1" ) | crontab -
347
347
crontab -l
348
348
349
- echo " Signaling ASG lifecycle hook to complete"
350
- TOKEN=$( curl -s -X PUT " http://169.254.169.254/latest/api/token" -H " X-aws-ec2-metadata-token-ttl-seconds: 21600" )
351
- INSTANCE_ID=$( curl -H " X-aws-ec2-metadata-token: $TOKEN " -s http://169.254.169.254/latest/meta-data/instance-id)
352
- aws autoscaling complete-lifecycle-action --lifecycle-action-result CONTINUE --instance-id $INSTANCE_ID --lifecycle-hook-name " $LIFECYCLE_HOOK_NAME " --auto-scaling-group-name " $ASG_NAME " --region $AWS_REGION
349
+ if [[ " $LIFECYCLE_HOOK_NAME " != " none" ]]; then
350
+ echo " Signaling ASG lifecycle hook to complete"
351
+ TOKEN=$( curl -s -X PUT " http://169.254.169.254/latest/api/token" -H " X-aws-ec2-metadata-token-ttl-seconds: 21600" )
352
+ INSTANCE_ID=$( curl -H " X-aws-ec2-metadata-token: $TOKEN " -s http://169.254.169.254/latest/meta-data/instance-id)
353
+ aws autoscaling complete-lifecycle-action --lifecycle-action-result CONTINUE --instance-id $INSTANCE_ID --lifecycle-hook-name " $LIFECYCLE_HOOK_NAME " --auto-scaling-group-name " $ASG_NAME " --region $AWS_REGION
354
+ fi
353
355
354
356
echo " All Done!!"
You can’t perform that action at this time.
0 commit comments