Skip to content

Commit

Permalink
add SSH tunnel configuration to the config file when the VM is stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Feb 3, 2024
1 parent c7bbb56 commit 2ee421a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/aws/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ function init {

openSSHTunnel $publicIp $portConfigArray
storeConfigIntoTreehousesConfigAsStringfiedJson $instanceName $keyName $instanceId $publicIp $groupName
callStoreConfigIntoTreehousesConfigAsStringfiedJson
}


2 changes: 2 additions & 0 deletions src/aws/stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ function stop(){
echo "Delete sshtunnel of root@$publicIp"

aws ec2 stop-instances --instance-ids $instanceId

updateSshtunnelConfig
}

0 comments on commit 2ee421a

Please sign in to comment.