postgresql - Programatically get AWS RDS connection string -
is there way through aws api connection string rds database? in form of:
postgres://username:password@host/db_name
no there's no api call build string you.
however, using describedbinstances api call can retrieve masterusername, dbname ("the name of initial database of instance provided @ create time, if 1 specified when db instance created") , host (through endpoint.address field) , build string yourself.
for password, you'll have provide in secure manner, since rds cannot retrieve through api calls.
Comments
Post a Comment