sst / torpedo

Connect to databases in private VPCs securely the easy way - no VPN required
MIT License
83 stars 3 forks source link

fix(bastion): use db instance id instead of db cluster id #3

Closed meeehdi-dev closed 8 months ago

meeehdi-dev commented 8 months ago

Hi,

noticed an issue when trying to tunnel to a rds instance that isn't an aurora cluster.

image

image

This is due to the fact that for the "regular" postgresql rds instance, the DBClusterIdentifier is nil. Using the DBInstanceIdentifier property instead gives the exact same string for the rds cluster but fixes the issue for the regular db instance.

Regards.