turbot / steampipe-plugin-aws

Use SQL to instantly query AWS resources across regions and accounts. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/turbot/aws
Apache License 2.0
177 stars 90 forks source link

The table aws_organizations_account fails to display result when we pass both `parent_id` and `id` as query parameter. #2235

Closed ParthaI closed 16 hours ago

ParthaI commented 2 days ago

Describe the bug The query SELECT * FROM aws_organizations_account WHERE parent_id = 'r-kjsdw' AND id = 'xxxxxxxxxxxx'returns the value by making the GET API call since the "id" value is passed in the query parameter. However, it displays an empty result due to Steampipe's level filtration on the "parent_id" value("FromQual()" returns a null value if we don't include "parent_id" as optional quals).

Steampipe version (steampipe -v) Example: v0.23.2

Plugin version (steampipe plugin list) Example: v0.141.0

To reproduce Run the query: SELECT * FROM aws_organizations_account WHERE parent_id = 'r-kjsdw' AND id = 'xxxxxxxxxxxx'

Expected behavior It should return the result instead of empty rows.

Additional context Add any other context about the problem here.