ConfigsApr 15, 2026·2 min read

Steampipe — Query Cloud APIs Live with SQL

Steampipe turns 140+ cloud services, SaaS APIs, and local data sources into PostgreSQL foreign tables so operators can audit, benchmark, and graph their infrastructure with plain SQL.

TL;DR
Steampipe exposes cloud and SaaS APIs as live PostgreSQL tables, letting you audit infrastructure with plain SQL.
§01

What it is

Steampipe is an open-source tool that exposes cloud and SaaS APIs as PostgreSQL foreign tables using a custom Foreign Data Wrapper. Instead of stitching together AWS CLI, kubectl, and GitHub scripts, operators run SQL queries and joins across providers to answer audit and inventory questions in seconds.

Steampipe targets cloud engineers, security teams, and SREs who need to query infrastructure state across multiple providers without writing custom API integration code.

§02

How it saves time or tokens

Steampipe replaces dozens of provider-specific CLI commands and scripts with a single SQL interface. Cross-provider queries that would require custom glue code become simple SQL joins. The built-in Mods provide pre-packaged benchmark queries for CIS, PCI, and HIPAA compliance, saving weeks of audit preparation. Response caching keeps queries cheap and rate-limit friendly.

§03

How to use

  1. Install Steampipe:
brew install turbot/tap/steampipe
  1. Add plugins for your cloud providers:
steampipe plugin install aws github kubernetes
  1. Run ad-hoc queries:
steampipe query 'select name, region from aws_s3_bucket where versioning_enabled = false'
  1. Or use the interactive shell:
steampipe query
§04

Example

Cross-provider audit query joining AWS and GitHub data:

-- Find S3 buckets without encryption
SELECT name, region, server_side_encryption_configuration
FROM aws_s3_bucket
WHERE server_side_encryption_configuration IS NULL;

-- Cross-provider: find GitHub repos with AWS credentials in secrets
SELECT r.full_name, s.name as secret_name
FROM github_repository r
JOIN github_actions_secret s ON r.full_name = s.repository_full_name
WHERE s.name LIKE '%AWS%';

Running a CIS benchmark:

steampipe check benchmark.cis_v150
§05

Related on TokRepo

§06

Common pitfalls

  • Queries without WHERE clauses on large AWS accounts trigger hundreds of API calls; always filter by region or specific resource attributes
  • Plugin authentication reuses existing cloud credentials (AWS profiles, kubeconfig); ensure your local credentials have read access to the resources you query
  • The Postgres wire protocol mode (port 9193) is useful for BI tool integration but requires running steampipe service start as a background process

Frequently Asked Questions

How many cloud providers does Steampipe support?+

Steampipe has plugins for over 140 services including AWS, Azure, GCP, GitHub, Kubernetes, Slack, Jira, and many more. Each plugin maps API responses to PostgreSQL tables. The plugin hub at hub.steampipe.io lists all available integrations.

Does Steampipe cache API responses?+

Yes. Steampipe caches responses in memory with a configurable TTL (default 5 minutes). This prevents redundant API calls when running multiple queries against the same data and helps stay within API rate limits.

Can I connect BI tools to Steampipe?+

Yes. Run steampipe service start to expose a PostgreSQL-compatible endpoint on port 9193. Tools like Metabase, Grafana, Superset, and any PostgreSQL client can connect and run queries directly.

What are Mods?+

Mods are packaged collections of SQL queries and benchmarks, often aligned with compliance frameworks like CIS, PCI DSS, and HIPAA. You install them with steampipe mod install and run them with steampipe check. They provide ready-made security and compliance audits.

Is Steampipe free?+

Yes. Steampipe is open source under the AGPLv3 license. The CLI, plugins, and Mods are free. Turbot (the company behind Steampipe) offers Turbot Pipes, a hosted service for team collaboration and scheduled benchmarks.

Citations (3)

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets