Trello + Steampipe
Trello is a web-based, kanban-style, list-making application.
Steampipe is an open-source zero-ETL engine to instantly query cloud APIs using SQL.
List details of the boards associated with your Trello account:
select id, name, id_organization, closed, urlfrom trello_board;
+--------------------------+------------------------------------+--------------------------+--------+------------------------------------------------------------------+| id | name | id_organization | closed | url |+--------------------------+------------------------------------+--------------------------+--------+------------------------------------------------------------------+| 123ace54605094aa59b02c42 | Trello Agile Sprint Board Template | 649ace0f581f4de8a0dc184c | true | https://trello.com/b/21wGVYiR/trello-agile-sprint-board-template |+--------------------------+------------------------------------+--------------------------+--------+------------------------------------------------------------------+
Documentation
Quick start
Install
Download and install the latest Trello plugin:
steampipe plugin install trello
Credentials
Item | Description |
---|---|
Credentials | Trello requires an API key and a Token for all requests. |
Permissions | API keys have the same permissions as the user who creates them, and if the user permissions change, the API key permissions also change. |
Radius | Each connection represents a single Trello Installation. |
Resolution | 1. Credentials explicitly set in a steampipe config file (~/.steampipe/config/trello.spc )2. Credentials specified in environment variables, e.g., TRELLO_API_KEY and TRELLO_TOKEN . |
Configuration
Installing the latest trello plugin will create a config file (~/.steampipe/config/trello.spc
) with a single connection named trello
:
Configure your account details in ~/.steampipe/config/trello.spc
:
connection "trello" { plugin = "trello"
# Trello API key for requests. Required. # See instructions at https://developer.atlassian.com/cloud/trello/guides/rest-api/authorization/ # This can also be set via the `TRELLO_API_KEY` environment variable. # api_key = "a25ad2e37570117c0bad72d0a711ba5af"
# Trello token for requests. Required. # This can also be set via the `TRELLO_TOKEN` environment variable. # token = "ATTAb179ea3c211722b0ebb2d223e1922b5e1ab1d28a3caac8d3722a83e9f91f25b973FDCC07" }
Alternatively, you can also use the standard Trello environment variables to obtain credentials only if other arguments (api_key
and token
) are not specified in the connection:
export TRELLO_API_KEY=a25ad2e37570117c0bad72d0a711ba5afexport TRELLO_TOKEN=ATTAb179ea3c211722b0ebb2d223e1922b5e1ab1d28a3caac8d3722a83e9f91f25b973FDCC07
Postgres FDW
This plugin is available as a native Postgres FDW. Unlike Steampipe CLI, which ships with an embedded Postgres server instance, the Postgres FDW can be installed in any supported Postgres database version.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_postgres_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/postgres.sh)" -- trello
The installer will prompt you for the plugin name and version, download and install the appropriate files for your OS, system architecture, and Postgres version.
To configure the Postgres FDW, you will create an extension, foreign server, and schema and import the foreign schema.
CREATE EXTENSION IF NOT EXISTS steampipe_postgres_trello;CREATE SERVER steampipe_trello FOREIGN DATA WRAPPER steampipe_postgres_trello OPTIONS (config '<your_config>');CREATE SCHEMA trello;IMPORT FOREIGN SCHEMA trello FROM SERVER steampipe_trello INTO trello;
SQLite Extension
This plugin is available as a SQLite Extension, making the tables available as SQLite virtual tables.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_sqlite_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/sqlite.sh)" -- trello
The installer will prompt you for the plugin name, version, and destination directory. It will then determine the OS and system architecture, and it will download and install the appropriate package.
To configure the SQLite extension, load the extension module and then run the steampipe_configure_trello
function to configure it with plugin-specific options.
$ sqlite3sqlite> .load ./steampipe_sqlite_extension_trello.sosqlite> select steampipe_configure_trello('<your_config>');
Export
This plugin is available as a standalone Export CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- trello
You can pass the configuration to the command with the --config
argument:
steampipe_export_trello --config '<your_config>' <table_name>