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
#6 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.