porter datastore connect creates a secure tunnel through which you can connect to your Porter-provisioned datastore locally. For example:
Copy
porter datastore connect <YOUR_DATASTORE_NAME>
Example output from running this command:
Copy
Secure tunnel setup complete! While the tunnel is running, you can connect to your datastore using the following credentials: Host: 127.0.0.1 Port: 8122 Database name: postgres Password: <YOUR_DATASTORE_PASSWORD>Starting proxy...[CTRL-C to exit]Forwarding from 127.0.0.1:8122 -> 6379Forwarding from [::1]:8122 -> 6379Handling connection for 8122
While the secure tunnel is running, you can run the following command in a separate shell to connect to your datastore (assuming the datastore is a redis cache):
Copy
redis-cli -p 8122 -a <YOUR_DATASTORE_PASSWORD> --tls