turbot/fly

GitHub
steampipe plugin install flysteampipe plugin install fly

Fly.io + Steampipe

Fly.io provides a global application distribution platform where you can run your code in Firecracker microVMs worldwide.

Steampipe is an open source CLI to instantly query cloud APIs using SQL.

List all apps deployed in your organization:

select
name,
app_url,
hostname,
status
from
fly_app;
+---------------------------+-----------------------------+-----------------------------------+-----------+
| name | app_url | hostname | status |
+---------------------------+-----------------------------+-----------------------------------+-----------+
| silent-meadow-6123 | https://2a09:8280:1::1:c64a | silent-meadow-6123.fly.dev | running |
| fly-builder-icy-tree-3230 | <null> | fly-builder-icy-tree-3230.fly.dev | suspended |
+---------------------------+-----------------------------+-----------------------------------+-----------+

Documentation

Get started

Install

Download and install the latest Fly plugin:

steampipe plugin install fly

Credentials

ItemDescription
CredentialsFly requires an API token for all requests.
PermissionsAPI tokens have the same permissions as the user who creates them, and if the user permissions change, the API token permissions also change.
RadiusEach connection represents a single Fly Installation.
Resolution1. Credentials explicitly set in a steampipe config file (~/.steampipe/config/fly.spc)
2. Credentials specified in environment variable, e.g., FLY_API_TOKEN.

Configuration

Installing the latest fly plugin will create a config file (~/.steampipe/config/fly.spc) with a single connection named fly:

connection "fly" {
plugin = "fly"
# Fly.io API token.
# To generate the token please visit https://fly.io/docs/flyctl/auth-token/
# This can also be set via the `FLY_API_TOKEN` environment variable.
# fly_api_token = "97GtVsdAPwowRToaWDtgZtILdXI_agszONwajQslZ1o"
}

Credentials from Environment Variables

The Fly plugin will use the standard Fly environment variables to obtain credentials only if other argument (fly_api_token) is not specified in the connection:

export FLY_API_TOKEN=97GtVsdAPwowRToaWDtgZtILdXI_agszONwajQslZ1o

Get involved