turbot / steampipe-mod-aws-thrifty

Are you a Thrifty AWS dev? This mod checks your AWS accounts for unused and under-utilized resources using Powerpipe and Steampipe.
https://hub.powerpipe.io/mods/turbot/aws_thrifty
Apache License 2.0
98 stars 19 forks source link

`aws_thrifty.control.cw_log_stream_unused` often errorred #165

Closed refeed closed 11 months ago

refeed commented 11 months ago

Describe the bug aws_thrifty.control.cw_log_stream_unused often errored Screenshot from 2024-01-03 12-18-27 Screenshot from 2024-01-03 11-36-17

Steampipe version (steampipe -v) Steampipe v0.21.1

Plugin version (steampipe plugin list)

+---------------------------------------------+---------+-------------+
| Installed                                   | Version | Connections |
+---------------------------------------------+---------+-------------+
| hub.steampipe.io/plugins/turbot/aws@latest  | 0.126.0 | aws         |
+---------------------------------------------+---------+-------------+

To reproduce Run steampipe check aws_thrifty.control.cw_log_stream_unused on a aws account that has a lot of logstreams

Expected behavior The control should run successfully

refeed commented 11 months ago

Slack chat: https://turbot-community.slack.com/archives/C01UECB59A7/p1704258568381759

It turns out increasing the time out is the solution, I modified the timeout by setting the env var STEAMPIPE_QUERY_TIMEOUT to a higher value and also AWS_MAX_ATTEMPTS