How to Automatically Turn Off your EC2 Instance in 2021

Ever crash after a long night of coding only to wake up realizing you didn’t turn off your EC2 instances and now you owe AWS $10? This is surprisingly easy to avoid in 2021.

This guide will show you how to automatically turn off your instance after a period of inactivity.