Romulo Sousa
Romulo Sousa

Reputation: 95

How much time the Amazon EC2's instance stay in Running state without activity?

I know that the charging of the most products of amazon is calculated by seconds of activity.

But I didn't get when this charge is stopped ( after X time of inactivity ).

Upvotes: 0

Views: 652

Answers (1)

Mark B
Mark B

Reputation: 201138

You are charged for the entire time an EC2 instance exists and is in the Running state. EC2 instances are not charged based on active vs. idle state. As long as the server is running you are being charged for it.

This statement is not really correct:

I know that the charging of the most products of amazon is calculated by seconds of activity.

For AWS services where you have to provision a server of a specific size, like RDS, Redshift, ElastiCache, etc. you are charged by the hour, for every hour the server is running. This used to be the case for EC2 as well, but it was recently changed to per-second billing. Even after this change EC2 still charges for every second you have provisioned the server resources, and does not care about how many of those seconds you were actively using the server.

The only AWS compute service that charges per seconds of activity is AWS Lambda.

Upvotes: 1

Related Questions