turbot / steampipe-plugin-sdk

Steampipe Plugin SDK is a simple abstraction layer to write a Steampipe plugin. Plugins automatically work across all engine types including the Steampipe CLI, Postgres FDW, SQLite extension and the export CLI.

Home Page:https://hub.steampipe.io/plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix STEAMPIPE_DIAGNOSTIC_LEVEL over STEAMPIPE_DIAGNOSTICS_LEVEL

rajlearner17 opened this issue · comments

commented

SDK: v5.6.0-rc.29
CLI: v0.21.0-beta.1,
STEAMPIPE_DIAGNOSTIC_LEVEL does not work even though we get a warning in the CLI to use it

Though it says below to use STEAMPIPE_DIAGNOSTIC_LEVEL
when using it, it does not render any diagnostics settings under it

➜  ~ steampipe query
Warning: Environment variable STEAMPIPE_DIAGNOSTICS_LEVEL is deprecated - use STEAMPIPE_DIAGNOSTIC_LEVEL
Welcome to Steampipe v0.21.0-beta.1
For more information, type .help
> 

When using STEAMPIPE_DIAGNOSTIC_LEVEL=ALL
output

> select jsonb_pretty(_ctx), * from aws_s3_bucket limit 1
[
 {
  "_ctx": {
   "connection_name": "aws"
  },
  "account_id": "123453682495",
  "acl": {
   "Grants": [
    {
     "Grantee": {
.....

When using STEAMPIPE_DIAGNOSTICS_LEVEL=ALL
output

> select jsonb_pretty(_ctx), * from aws_s3_bucket limit 1
[
 {
  "_ctx": {
   "connection_name": "aws",
   "diagnostics": {
    "calls": [
     {
      "function_name": "listS3Buckets",
      "rate_limiter_delay_ms": 0,
      "rate_limiters": [],
      "scope_values": {
       "action": "ListBuckets",
       "connection": "aws",
       "function_name": "listS3Buckets",
       "service": "s3",
       "table": "aws_s3_bucket"
      },
      "type": "list"               

works in rc.30