boto3 RDS get all Database names of a DB instance

耗尽温柔 提交于 2021-01-28 07:24:38

问题


I have 2 database name of MySQL Aurora for same host, username and password. Like Below

{"host": "aaaa....rds.amazonaws.com"  , "username": "test", "password": "test", "database": "db1" }

Similarly

{"host": "aaaa....rds.amazonaws.com"  , "username": "test", "password": "test", "database": "db2" }

But I can not find the second database name while I am trying to access rds database instances by using boto 3 as stated below

 rds.describe_db_instances()['DBInstances']

It only return db1 not the db2

Can any one help me where and how can I find db2

来源:https://stackoverflow.com/questions/51477898/boto3-rds-get-all-database-names-of-a-db-instance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!