Why is the EC2 Instance Hours report showing instances running for more hours than available in a month?
search cancel

Why is the EC2 Instance Hours report showing instances running for more hours than available in a month?

book

Article ID: 283275

calendar_today

Updated On:

Products

CloudHealth

Issue/Introduction

When you launch an EC2 instance, it first enters the "pending" state and then transitions to the "running" state. When you stop that instance, it first enters the "stopping" state and then transitions to the "stopped" state.

Each time an instance transitions from "stopped" to "running", AWS charges for a full instance hour, even if these transitions happen multiple times within a single hour.

Therefore, if you restart an EC2 instance multiple times in an hour, each restart incurs an hour of usage. When these restarts occur consistently throughout a month, the instance usage hours tend to exceed the total available hours in that month.

For more information, see EC2 Instance Lifecycle