-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CloudTrail Service - API response missing "EventSelectors" results in unhandled KeyError #578
Comments
Please fill out everything in the issue template that you deleted: Before opening an issue, please see the Please remove all of this template but the relevant section below, and fill in Bug ReportWhen reporting a bug in awslimitchecker, please provide all of the following information, Versionawslimitchecker version, as reported by Installation MethodHow was awslimitchecker installed (provide as much detail as possible, ideally Supporting Software VersionsThe output of Actual Output
Expected OutputDescribe the output that you expected (what's wrong). If possible, after your description, TrustedAdvisorIf the bug/issue is related to TrustedAdvisor, which support contract your account has. Testing AssistanceIndicate whether or not you will be able to assist in testing pre-release |
Version Installation Method Supporting Software Versions Actual Output Process finished with exit code 1] TrustedAdvisor Testing Assistance |
when i commented the line 92 in cloudtrail.py file it worked -so how to remove the line in my lambda because it can work localy but when i use my lambda function still taking the api from your repo and from cloudtrail.py |
did you change anything regarding region:us-west-2 ? |
after investigating by adding print statement to line 89 before the "EventSelectors"exception : 1.print(TrailName) the tool worked locally but still the lambda function using the global awslimitchecker api's which don't have the print statement |
Apologies for the delayed response. I have not changed anything in awslimitchecker in a year and a half. This looks like AWS has changed their CloudTrail API responses. As a workaround, if you don't need to monitor the CloudTrail service, there are instructions in the documentation for how to skip specific services when calling AwsLimitChecker via Python: https://awslimitchecker.readthedocs.io/en/latest/python_usage.html#skipping-specific-services |
thank you so much by skipping the cloudtrail the lambda function worked again |
My lambda function using AWslimitchecker API was working for 1 year and half then yesterday while running the lambda function this error pop-out without changing any thing in codes or repository
Bug Report
"errorMessage": "'EventSelectors'", "errorType": "KeyError", from cloudtrail.py
Actual Output
"errorMessage": "'EventSelectors'", "errorType": "KeyError", from cloudtrail.py
Expected Output
getting all Aws services quotas limits if the usage exceeds the critical thresholds
kindly help why the cloudtrail cause that error and how to resolve it so the lambda function will work again
The text was updated successfully, but these errors were encountered: