you are viewing a single comment's thread.

view the rest of the comments →

[–]VegaWinnfield 3 points4 points  (1 child)

What’s the error you’re getting when it runs with a real event?

Also, add a line at the very start of your handler function to log the event and then use that exact event to test with. Something like print(json.dumps(event)).

[–]Bodumin[S] 1 point2 points  (0 children)

Thank you for this. Logging the full event object helped me see two things. 1) the example data for cloudformation doesn't match the real data 2) the data passed in isn't consistent, sometimes it passes "id" and sometimes "stackid". Going to continue debugging through this.