I'd like to write a script that snapshots and restores the RDS database associated with my Elastic Beanstalk environment. How can I get the RDS instance id which I'll be plugging into the aws rds create-db-snapshot and aws rds restore-db-instance-from-db-snapshot commands?
I know that it can be seen in the Configuration tab in the web interface, but I wanted to get it using a command executed in the shell.