aws-samples / aws-samples/amazon-macie-scripts
macie-kms-todo.py fails if a bucket has a KMS key that does not exist associated with it
Open
- Dominant language
- Python
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Running the script will fail if a bucket in the region that has a KMS key associated with it which no longer exists in that account. The failure blocks reporting on any keys in the region. Filing this issue so that the script can be modified to more gracefully handle this situation and report on the rest of the keys that can be accessed.
Script currently fails with the error of:
NotFoundException: An error occurred (NotFoundException) when calling the DescribeKey
operation: Key 'arn:aws:kms:::key/' does not exist
Contributor guide
Assessment
This issue has not been assessed yet.