amazon rds - RDS instance script -


can me how should bash script check if rds instance running, , if are, stop them, like. , if not running, script should exit message:

no instances running.

i have used aws cli start , stop instances, not sure how collaborate them in 1 single script.

aws rds stop-db-instance --db-instance-identifier mydbinstance 


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -