Connect to Turbot Pipes from DataGrip
DataGrip is a cross-platform SQL IDE to query, edit and manage your databases.
Steampipe provides a single interface to all your cloud, code, logs and more. Because it's built on Postgres, Steampipe provides an endpoint that any Postgres-compatible client -- including DataGrip -- can connect to.
The Connect tab for your workspace provides the details you need to connect DataGrip to Turbot Pipes.
Once the connection to Turbot Pipes is established and tested, you can explore the tables provided by the Steampipe plugins, run queries and build reports.
You can also connect DataGrip to
Steampipe CLI. To do that, run
steampipe service start --show-password and use the displayed connection
Steampipe service is running:Database:Host(s): localhost, 127.0.0.1, 192.168.29.204Port: 9193Database: steampipeUser: steampipePassword: 99**_****_**8cConnection string: postgres://steampipe:99**_****_**8c@localhost:9193/steampipe
DataGrip is available to use on the desktop; there's a 30-day trial. In this example we will create a Turbot Pipes connection from DataGrip and query the AWS availability zones.
To create a new connection click on
New and add a PostgreSQL data source.
Download missing driver files at the bottom of the settings page, since
DataGrip does not include bundled drivers required to interact with the
database. Enter the Turbot Pipes connection details and click
Once you've connected to Turbot Pipes, you can access the AWS plugin and its tables from the Database explorer.
Here we select the
aws_availability_zone table. DataGrip displays the table's
schema and previews the data. You can drag the columns to organize the data and
choose to export the data to a
variety of formats.
Run your first custom query
DataGrip provides an editor that you may use to write custom queries. Here is a query to fetch the list of encrypted EBS volumes.