-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Refactoring/aws/dynamodb #274
Refactoring/aws/dynamodb #274
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.
💯
Codecov Report
@@ Coverage Diff @@
## refactoring/resource-configs #274 +/- ##
================================================================
- Coverage 31% 30.99% -0.02%
================================================================
Files 130 130
Lines 5632 5634 +2
================================================================
Hits 1746 1746
- Misses 3886 3888 +2
Continue to review full report at Codecov.
|
from ScoutSuite.providers.aws.services.kms_private import KMSConfig | ||
except ImportError: | ||
ConfigConfig = None | ||
DynamoDBConfig = None | ||
Config = None |
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.
Bye bye ConfigConfig 😍
This PR migrates DynamoDB to the new architecture, see #183 . This is part of a proprietary feature, please also review the proprietary PR.
Interesting stuff:
The get for one table requires 3 API calls (getting the table info, the manual backups info and the continuous backups). I batched the requests instead of just parallelizing all the requests. This will mitigate the risk of being throttled.EDIT: The batching was actually reverted. We realized the number of concurrent requests was already limited by the number of threads, so this became superfluous.