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
160 stars 44 forks source link

EFS Policy Not Found Error #95

Open crazykit93 opened 4 months ago

crazykit93 commented 4 months ago

Describe the bug Error prompt when inspecting EFS

Expected behavior EFS with disabled "Automatic backups", thus "policy not found" prompted.

Screenshot image

**Error Captured" ... (EFS) inspecting fs-090404821061821eb PolicyNotFound None Traceback (most recent call last): File "/home/cloudshell-user/service-screener-v2/services/Evaluator.py", line 46, in run getattr(self, method)() File "/home/cloudshell-user/service-screener-v2/services/efs/drivers/EfsDriver.py", line 32, in _checkBackupPolicy backup = self.efs_client.describe_backup_policy( File "/home/cloudshell-user/lib64/python3.9/site-packages/botocore/client.py", line 530, in _api_call return self._make_api_call(operation_name, kwargs) File "/home/cloudshell-user/lib64/python3.9/site-packages/botocore/client.py", line 964, in _make_api_call raise error_class(parsed_response, operation_name) botocore.errorfactory.PolicyNotFound: An error occurred (PolicyNotFound) when calling the DescribeBackupPolicy operation: None