Hello oracles of the internet!
I have the following alarm to stop and EC2 once it remains unused for 2 hours, however, the action seems to not be working as intended because the EC2 is still running after a weekend of inactivity.
Was the alarm already in a failed State when you added the action? If I remember correctly, cloudwatch actions only trip when the alarm changes state. You should be able to look at the history tab and will tell you the history of the alarm State changing.