LaunchDarkly + Steampipe
LaunchDarkly is a feature management platform that enables software teams to build better software faster by safely serving and controlling software features in production.
Steampipe is an open source CLI to instantly query cloud APIs using SQL.
List feature flags in your LaunchDarkly account:
select name, key, version, creation_date, kindfrom launchdarkly_feature_flag;
+----------------------+----------------------+---------+---------------------------+--------------+| name | key | version | creation_date | kind |+----------------------+----------------------+---------+---------------------------+--------------+| dark-light-mode-node | dark-light-mode-node | 1 | 2023-04-24T10:28:26+05:30 | boolean || first-flag-test | first-flag-test | 1 | 2023-04-25T15:36:33+05:30 | multivariate || alphabet-flag | num-flag | 1 | 2023-04-24T11:20:39+05:30 | multivariate || hello-world | go-world | 2 | 2023-04-25T16:46:23+05:30 | boolean |+----------------------+----------------------+---------+---------------------------+--------------+
Documentation
Quick start
Install
Download and install the latest LaunchDarkly plugin:
steampipe plugin install launchdarkly
Credentials
Item | Description |
---|---|
Credentials | LaunchDarkly requires an Access token for all requests. |
Permissions | Access tokens have the same permissions as the user who creates them, and if the user permissions change, the Access token permissions also change. |
Radius | Each connection represents a single LaunchDarkly Installation. |
Resolution | 1. Credentials explicitly set in a steampipe config file (~/.steampipe/config/launchdarkly.spc )2. Credentials specified in environment variables, e.g., LAUNCHDARKLY_ACCESS_TOKEN . |
Configuration
Installing the latest launchdarkly plugin will create a config file (~/.steampipe/config/launchdarkly.spc
) with a single connection named launchdarkly
:
Configure your account details in ~/.steampipe/config/launchdarkly.spc
:
connection "launchdarkly" { plugin = "launchdarkly"
# `access_token`: LaunchDarkly Access Token. (Required) # Generate your Access Token per https://docs.launchdarkly.com/home/account-security/api-access-tokens#creating-api-access-tokens # This can also be set via the `LAUNCHDARKLY_ACCESS_TOKEN` environment variable. # access_token = "api-dd8ce121-cd11-401c-be02-322b7362111d"}
Alternatively, you can also use the standard LaunchDarkly environment variables to obtain credentials only if other arguments (access_token
) are not specified in the connection:
export LAUNCHDARKLY_ACCESS_TOKEN=api-dd8ce121-cd11-401c-be02-322b7362111d
Get involved
- Open source: https://github.com/turbot/steampipe-plugin-launchdarkly
- Community: Slack Channel