aws-samples / service-screener-v2

A tool for customers to evaluate their AWS service configurations based on AWS and community best practices and receive recommendations on potential improvements.
Apache License 2.0
333 stars 60 forks source link

Unable to generate report #8

Closed vfchoo closed 1 year ago

vfchoo commented 1 year ago

Describe the bug screener-v2 throws error after completing inspecting and exits

To Reproduce Steps to reproduce the behavior:

  1. Run main.py as described with region parameter and output parameter set to report
  2. Error thrown
  3. ` not exists in cloudtrail.reporter.json not exists in cloudtrail.reporter.json Traceback (most recent call last): File "main.py", line 165, in Screener.generateScreenerOutput(runmode, contexts, hasGlobal, regions, uploadToS3, bucket) File "/home/cloudshell-user/screenerv2/service-screener-v2/Screener.py", line 136, in generateScreenerOutput reporter.process(resultSets).getSummary().getDetails() File "/home/cloudshell-user/screenerv2/service-screener-v2/services/Reporter.py", line 157, in getSummary dashboard['MAP'][self.service][critical] += itemSize KeyError: 'X `

Expected behavior A clear and concise description of what you expected to happen.

AWS CloudShell (please complete the following information):

kuettai commented 1 year ago

Taking a look

kuettai commented 1 year ago

Reproduced and Resolved on my end.