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

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

nginx - phpPgAdmin - log in works but I have to login again after clicking on any links -