Connecting to RDS from local machine (ssh tunnel?) #2273
-
I want to be able to manage my Aurora PostgreSQL instance from pgadmin or similar. I know an EC2 instance could be setup to do this specifically, but I'm kind of wary of interfacing with copilot managed resources because I'm not confident about how they'll respond when/if changes are made. So I'd kind of like to keep this as copiloty as possible. Another option I've considered is deploying a pgadmin instance into the same environment as my rds instance, but that seems extreme. Thanks for your help, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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: Let me know if this route seems viable for you! |
Beta Was this translation helpful? Give feedback.
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:
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!