-
Notifications
You must be signed in to change notification settings - Fork 856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting [ERROR] KeyError: 'invokingEvent' while executing IAM_USER_MFA_ENABLED #415
Comments
The error you're encountering, KeyError: 'invokingEvent', indicates that the key 'invokingEvent' is not present in the event dictionary. To rectify this error, you should check if the key exists before trying to access it. def lambda_handler(event, context):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to execute the code from https://github.com/awslabs/aws-config-rules/blob/master/python/IAM_USER_MFA_ENABLED/IAM_USER_MFA_ENABLED.py in a lambda. I am getting the following error:
[ERROR] KeyError: 'invokingEvent'Traceback (most recent call last): File "/var/task/lambda_function.py", line 365, in lambda_handler invoking_event = json.loads(event['invokingEvent']) | [ERROR] KeyError:
Can someone please help.
The text was updated successfully, but these errors were encountered: