Actually i want to reduce AWS bill. I am using some of the instances in my project. I want a notification after certain time period(every 3rd/4th hour) on my login email id and shutdown on a particular time duration. So, how can i do this?
if current time - instance start time >= 3 hr (send a mail)
if current time - instance start time >= 4 hr (send a mail)
if current time - instance start time >= 5 hr (shut down that instance)

Your function's execution role doesn't have permission to send result to the destination. By clicking save we'll attempt to add permission to the role for you.. I have given two policy (EC2FullAccess and SNSFullAccess). Why is it showing you don't have permission? What are the more policies it required?