Thanks for the explanation, you just explained it so well. I was finding this solution from the last 2 days & shit I got it from this video. liked & subscribed:)
I got success from Lambda but it doesn't have any effect on the EC2 instances. I don't know how were you able to start the instance if stopped or stop the instance if started. Some others also faced the same issue.