Skip to content

Connecting to RDS from local machine (ssh tunnel?) #2273

Answered by efekarakus
coopsmoss asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @coopsmoss !

One AWS native alternative might be to use the RDS Data API to be able to make queries against your database: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html

You can enable this by modifying your addon template like this:

myDBCluster:
    Type: 'AWS::RDS::DBCluster'
    Properties:
      EnableHttpEndpoint: true # Add this property and then run "copilot deploy"

Then in the console for RDS you can choose your database and "Query" it:

and then in the query editor you'll be able to query against your database:

Let me know if this route seems viable for you!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@coopsmoss
Comment options

Answer selected by coopsmoss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants