steampipe_postgres_aws
steampipe-plugin-aws · Steampipe AWS native PostgreSQL FDW for querying live AWS APIs as foreign tables.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101166 | steampipe_postgres_aws | steampipe-plugin-aws | 1.38.0 | FDW | Apache-2.0 | Go |
PostgreSQL · 14, 15
Usage
Sources:
steampipe_postgres_aws is the PostgreSQL FDW build of Turbot’s AWS Steampipe plugin. It translates SQL scans of imported foreign tables into live AWS API calls, allowing infrastructure inventory and configuration analysis from an existing PostgreSQL database. The package is not the Steampipe CLI and does not copy AWS resources into local tables unless you do so explicitly.
Core Workflow
After installing binaries that match the operating system, architecture, and PostgreSQL major version, create the extension, configure a foreign server, and import its tables into a schema:
The config server option is a newline-sensitive HCL string containing AWS plugin connection arguments. Instead of a profile, it can use the credential mechanisms documented by the AWS plugin. Any environment variables or files under a home directory are resolved in the PostgreSQL server operating-system user’s context, not the interactive client user’s context.
Object and Query Model
- Extension/FDW:
steampipe_postgres_aws. - Foreign server: user-defined; create one per distinct AWS account/region configuration.
- Imported schema: user-defined;
IMPORT FOREIGN SCHEMAcreates the foreign-table definitions supplied by the plugin. - Foreign tables: service-oriented
aws_*tables such asaws_s3_bucket, with available columns, filters, permissions, and examples documented individually in the Steampipe Hub.
Queries call AWS APIs and can be slower, rate-limited, paginated, eventually consistent, or denied by IAM. Push supported key columns into WHERE clauses when a table’s documentation identifies required or optional quals. Materialize a snapshot locally when repeatable analytics, joins, or historical comparison matter.
Security and Version Boundaries
Prefer an AWS profile, workload role, or other short-lived credential source over static keys in pg_foreign_server. Grant only the IAM read permissions needed by the tables you query, and restrict access to server options and imported foreign tables. Foreign scans may incur AWS API activity and related service costs.
The verified official 1.38.0 release includes standalone PostgreSQL AWS artifacts; the inspected PostgreSQL 15 macOS arm64 artifact retains SQL version 1.0. The older database.dev package remains a separate 0.125.0 publication. Match the official artifact to the actual platform and PostgreSQL major; do not infer newer-major support from the plugin tag. SQL extversion alone cannot identify the plugin revision. Review table-definition changes and re-import or recreate foreign tables deliberately, preserving grants and dependent objects. The installer README contains destructive DROP examples, which are unnecessary for a fresh installation and should not be copied over an existing deployment. No shared_preload_libraries setting is required.
Changes in 1.37.0
The aws_identitystore_user table adds user_status and now returns complete columns when filtered by id. The aws_vpc_vpn_connection options include additional BGP log settings. Review imported definitions before using newly exposed fields.
A default aws_ec2_describe_attribute rate limiter reduces throttling from per-row EC2 attribute calls; it does not guarantee unlimited AWS quota. The release also fixes unstable security-group-rule identifiers and SDK failures that could previously hide errors as missing data. Recheck saved inventories and error handling after replacing binaries, while preserving grants and dependent views.
Changes in 1.38.0
aws_elasticache_replication_group adds tags and tags_src. ElastiCache cluster and serverless-cache tables return NULL tags when the service cannot supply them, instead of failing the entire query. Review imported foreign-table definitions before using the new columns; NULL does not prove a resource has no tags.