-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework identification API to be asynchronous
User issues a POST request with payload to /identify, unique request_id is generated and returned to user. User then can issue GET request to /identify/<request_id> to get response. This allows to scan big accounts with a lot of resources and do not exceed 30 seconds response timeout for lambda integration with gateway. New DDB was added for tracking status of user requests. API lambda(entrypoint) now triggers existing describe lambdas to do a scan. Every describe lambda retrieves request_id from payload and updates corresponding record in requests table after it finishes the scan of the region. This allows to track the progress of scan, by comparing current progress and total number of scans (features * regions) and determine when the scan is finished. Remediation is not supported for now. Add "scan account <account id>" command to slack bot. Currently it supports only full account scan.
- Loading branch information
1 parent
1bd8d36
commit d07b202
Showing
22 changed files
with
412 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.