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
167 stars 46 forks source link

Issue running the service screener #62

Closed sames2020 closed 6 months ago

sames2020 commented 6 months ago

Describe the bug encouter. [!! WARNING !!] Rule rds::SnapshotTooOld is not available in reporter, please submit an issue to github.

To Reproduce Steps to reproduce the behavior:

  1. Run the following command python3 -m venv . source bin/activate python3 -m pip install --upgrade pip rm -rf service-screener-v2 git clone https://github.com/aws-samples/service-screener-v2.git cd service-screener-v2 pip install -r requirements.txt alias screener="python3 $(pwd)/main.py"
  2. Run service screener screener --regions ALL

Full commands used to reproduce this bug screener --regions ALL

Expected behavior To be able to generated an output.

Screenshots

PREPARING -- CLOUDFRONT::us-east-1 Skipped runtime version check due to unable to locate runtime option path ... (Lambda) inspecting aws-controltower-NotificationForwarder ... (EBS) inspecting vol-03af1b0988a9ff1a1 Skipped runtime version check due to unable to locate runtime option path ... (Lambda) inspecting cwsyn-influasia-heartbeat-341f6852-5ff8-43a9-9888-223a23842bb6 ... (EBS) inspecting vol-0136fc860832f318e ... (EBS) inspecting vol-027f8718245a01a10 Skipped runtime version check due to unable to locate runtime option path ... (Lambda) inspecting ECSScheduler ... (EBS) inspecting vol-0ed44c61609253ee4 ... (EBS) inspecting vol-059869a83b59a98bf Skipped runtime version check due to unable to locate runtime option path ... (Lambda) inspecting ecs-task-scheduler-by-tag ... (EBS::Snapshots) inspecting Skipped runtime version check due to unable to locate runtime option path ... (ELB::Load Balancer) inspecting wof-load-balancer ... (Lambda) inspecting testingecs ... (ELB::Load Balancer) inspecting ALB-common Skipped runtime version check due to unable to locate runtime option path COMPLETED -- LAMBDA::ap-southeast-1 (5.004s) Unable to capture S3 MFA settings: AccessDenied Unable to capture S3 Logging settings: AccessDenied IAM Users scan will be skip, unable to acquire IamCredentialReports DynamodbpageBuilder class not found, using default pageBuilder S3pageBuilder class not found, using default pageBuilder EfspageBuilder class not found, using default pageBuilder OpensearchpageBuilder class not found, using default pageBuilder CloudfrontpageBuilder class not found, using default pageBuilder LambdapageBuilder class not found, using default pageBuilder CloudtrailpageBuilder class not found, using default pageBuilder EkspageBuilder class not found, using default pageBuilder

[!! WARNING !!] Rule rds::SnapshotTooOld is not available in reporter, please submit an issue to github. Traceback (most recent call last): File "/home/cloudshell-user/service-screener-v2/main.py", line 274, in Screener.generateScreenerOutput(runmode, contexts, hasGlobal, regions, uploadToS3, bucket) File "/home/cloudshell-user/service-screener-v2/Screener.py", line 171, in generateScreenerOutput reporter.process(resultSets).getSummary().getDetails() File "/home/cloudshell-user/service-screener-v2/services/Reporter.py", line 186, in getSummary dashboard['CATEGORY'][region][mainCategory][critical] += itemSize KeyError: 'X'

AWS CloudShell (please complete the following information):

Additional context Add any other context about the problem here.

kuettai commented 6 months ago

Acknowledged. Will take a look in next day.

kuettai commented 6 months ago

Resolved in #64