sst / torpedo

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

No databases found #5

Open nacho-vazquez opened 6 months ago

nacho-vazquez commented 6 months ago

The Problem

I have run Torpedo using my AWS Profiles and using AWS Credentials. Both gave me the same message: "No databases found."

In one of the accounts, I have 3 Aurora RDS PostgreSQL databases.

zacronos commented 5 months ago

I've run into this same error.

goto3 commented 4 months ago

Same here,

I created a RDS database using the construct:

export default function SQLDatabase({ stack }: StackContext): RDS {
  const rds = new RDS(stack, 'db', {
    engine: 'postgresql11.13',
    defaultDatabaseName: 'dbName',
  });

  return rds;
}

I have already set the default profile with the correct credentials,

the database is there: image

chaseric commented 3 months ago

Same error ☹️

chaseric commented 3 months ago

Found the issue: https://github.com/sst/torpedo/blob/037a7f139b10b153055f802dfa42659ec8406817/pkg/bastion/bastion.go#L63C15-L63C99

Aurora will not show up in these instances. I believe it needs to use DescribeDBClusters instead: https://docs.aws.amazon.com/sdk-for-go/api/service/rds/#example_RDS_DescribeDBClusters_shared00. Perhaps should be a flag so it can be based on either? @thdxr?

Going to pull it down and see if I can get it to work.