prowler-cloud / prowler

Prowler is an Open Source Security tool for AWS, Azure, GCP and Kubernetes to do security assessments, audits, incident response, compliance, continuous monitoring, hardening and forensics readiness. Includes CIS, NIST 800, NIST CSF, CISA, FedRAMP, PCI-DSS, GDPR, HIPAA, FFIEC, SOC2, GXP, Well-Architected Security, ENS and more
https://prowler.com
Apache License 2.0
10.76k stars 1.53k forks source link

chore(aws): Change RDS instance type from list to dict #4851

Closed danibarranqueroo closed 2 months ago

danibarranqueroo commented 2 months ago

Context

For a new check that will be done soon, it's necessary to iterate over two different services. Using a dictionary type for this is more efficient than using a list. As a result of this change, the rest of the RDS instances checks that currently iterate over a list will need to be modified to ensure they continue functioning properly.

Description

Modified all the checks related to iterating over instances and updated the necessary tests accordingly.

Checklist

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 89.20%. Comparing base (c2552ee) to head (e6ea3c7). Report is 9 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #4851 +/- ## ========================================== + Coverage 89.16% 89.20% +0.03% ========================================== Files 933 933 Lines 28567 28567 ========================================== + Hits 25473 25483 +10 + Misses 3094 3084 -10 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.