-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(wafv2): only list resources for regional Web ACLs #5811
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not to catch the exception?
This exception won't appear again with this change since we were using this call for Global Web ACLs and only works for regional ones. |
WAFInvalidParameterException
AWS does not support I don't see the point of catching it if we can avoid the failing scenario instead. |
Thank you for the clarification @HugoPBrito @MrCloudSec ❤️ |
🫶 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5811 +/- ##
=======================================
Coverage 89.87% 89.87%
=======================================
Files 1132 1132
Lines 35275 35275
=======================================
+ Hits 31703 31705 +2
+ Misses 3572 3570 -2 ☔ View full report in Codecov by Sentry. |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
Context
An
WAFInvalidParameterException
error message was appearing while listing resources due to global ACLs being included in the call, which isn't supported byboto3
.Fix #5805
Description
Logic behind this error has been corrected and
_list_resources_for_web_acl
only lists regional ACLs.Checklist
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.