turbot / steampipe-export

Steampipe Export is a zero-ETL CLI to fetch data from cloud services and APIs. Hundreds of plugins with thousands of documented examples.
https://steampipe.io
Apache License 2.0
8 stars 1 forks source link

Support for aggregate connections? #82

Open andymadge opened 4 months ago

andymadge commented 4 months ago

I can't see any way to even specify multiple connections, nevermind aggregate them.

I have it working for a single connection, specifying AWS creds in env vars.

If I point it at my normal (working) steampipe config file like this:

steampipe_export_aws aws_ec2_instance --limit 1 --config "$(cat ~/.steampipe/config/aws.spc)"

I get this output (with debug logging)

[INFO]  Serve
[INFO]  initialise plugin 'steampipe-plugin-aws', using sdk version 5.10.0
[INFO]  GOMEMLIMIT=
[INFO]  setAllConnectionConfigs
[INFO]  upsertConnections adding 1 connection connection
[WARN]  upsertConnectionData failed for connection aws, config validation failed: failed to parse connection config for connection 'aws': Unsupported block type: Blocks of type "connection" are not expected here.
[INFO]  createCacheStore for plugin 'steampipe-plugin-aws' setting max size to 0Mb, Shards: 2, max shard size: 0
[INFO]  query cache created, max size 0Mb
[DEBUG] setAllConnectionConfigs finished
failed to parse connection config for connection 'aws': Unsupported block type: Blocks of type "connection" are not expected here.

There isn't a aws connection in my config. If I add one to test it makes no difference.

Is Exporter currently limited to a single non-aggregate connection?