Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Log the raw event before trying to access it's contents#12

Open
jethrocarr wants to merge 1 commit intoaws-samples:masterfrom
jethrocarr:log-tweak
Open

Log the raw event before trying to access it's contents#12
jethrocarr wants to merge 1 commit intoaws-samples:masterfrom
jethrocarr:log-tweak

Conversation

@jethrocarr
Copy link

This commit fixes an issue where if the Lambda is sent an invalid message that misses any of the expected fields (Eg "EC2InstanceId"), the Lambda will throw a KeyError but fail before outputting the raw message making it very difficult to figure out what was missed.

This commit fixes an issue where if the Lambda is sent an invalid
message that misses any of the expected fields (Eg "EC2InstanceId"), the
Lambda will throw a KeyError but fail before outputting the raw message
making debugging it impossible.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant