Hi, We have a self hosted Data Plane (AWS Ec2 inst...
# support
h
Hi, We have a self hosted Data Plane (AWS Ec2 instance) using Docker . How can I connect to PostgreSQL (Streaming db) from my local for verifying event data?
f
You can use some tunneling software but we discourage to do that due to security reasons. It would be better if you host the PostgresSQL in some cloud instance and use that.
h
Thankyou Sudip. Does that mean that instead of using in built postgres server, create a separate server outside of Ec2 and then stream events through self hosted postgres?
f
I misunderstood the issue. I thought you are running postgress server locally which is not but you are running rudderstack locally using docker. You can follow this doc.
h
Sorry @fierce-crayon-64520 I might not have explained the issue correctly. 1. We have Rudderstack dataplane installed in AWS EC2 instance via docker. 2. We are missing few events in one of the destination (Mixpanel) from our source (JavaScript website). 3. In order to ensure that source is sending the events to dataplane, I would like to connect to the internal standalone streaming database (PostgreSQL) that resides in Data Plane I would like to know how can I connect to this internal PostgreSQL to ensure that all the events are received from source. Let me know if you need more info.
f
Got it. I don't know the procedure let me get back to you with the information.
👍 1
h
@fierce-crayon-64520 Hi Sudip. Any update on the steps to connect to data plane streaming db?
f
Yes I got this steps: • Enable SSH on EC2 machine and login to the machine • Update the docker compose to expose the postgres port on the host • Install psql on the machine and use psql to connect to Postgres This is not detailed though, you can go through AWS documentation for further details.
h
Thankyou Sudip. I'll have a look