How to pause / resume a aws lambda function
<p>For example I have lambda functions that consume messages from a KinesisStream. How do stop and resume the function so that I don't incur charges and I don't loose data in the stream.</p>

<p>I know that if the events keep failing, Kinesis will keep retrying and the cost can be very high.</p>

<p>I cannot delete the function because there is lots of automation around it through CloudFormation. Is there a way to stop and restart the function?</p>

<p><strong>SOLUTION</strong>:  <a href="http://alestic.com/2015/11/aws-lambda-kinesis-pause-resume" rel="noreferrer">http://alestic.com/2015/11/aws-lambda-kinesis-pause-resume</a> </p>

<p><strong>NOTE</strong>: Event sources for rules, log streaming, cannot be disable using the event source. You will not event get it in the list when calling the API using the SDK. For those you have to disable the Event Rule, or the Log Subscription.</p>