Automatically stop instances with Lambda, reduce your AWS usage fee!!
- AWS Account
-
Create Python 3 Lambda Function paste lambda_function.py
- *you must change AWS_ACCESS_KEY and AWS_ACCESS_SECRET *
-
Set Cloudwatch Event for trigger if you want to Invoke every 22:00 UTC, set like this
cron(0 22 * * ? *)
I wrote article about this function.