The build_evaluation function is called with gateway['name'], instead of gateway['id']
For example evaluations.append(build_evaluation(gateway['name'], 'NON_COMPLIANT', event, annotation='The attached policy allows more than the whitelist.'))
This causes an issue in the AWS Config Console > Rules > Rule details, section "Compliance status", the Ressource name is displayed, and when clicking on it, it is not found.
When changing gateway['name'] by gateway['id'] the issue disappears.
For those rules (other may be having the same issue) :
The build_evaluation function is called with
gateway['name']
, instead ofgateway['id']
For exampleevaluations.append(build_evaluation(gateway['name'], 'NON_COMPLIANT', event, annotation='The attached policy allows more than the whitelist.'))
This causes an issue in the AWS Config Console > Rules > Rule details, section "Compliance status", the Ressource name is displayed, and when clicking on it, it is not found.
When changing
gateway['name']
bygateway['id']
the issue disappears.I can make a PR later if it helps.