Does amazon start billing for a service from the moment it is starting up or only after it has started up?

0

I am using a couple of services like EC2 compute and Amazon RDS. Instances from both AWS services can take a few minutes to start up. My question is: When does Amazon start charging the customer for such an instance? Does it happen the moment the customer hits the Create instance button or only after the instance has been fully initialized and is ready to take requests?

I have the same question for when someone stops an EC2 or RDS instance. It takes a while for it to shut down completely. Does billing stop the moment you give the stop order or only after the instance has stopped completely? I could only find this repost.aws question about the subject. But that question is about one specific service. I would like to know at what point amazon starts billing and stops billing for a service in general.

Thank you

질문됨 2년 전243회 조회
2개 답변
2

You are billed when the instance is in running state. You can find additional details here

--Syd

profile picture
Syd
답변함 2년 전
  • +1 to this. Worth noting that sometimes EC2 instances may be in the "running" state, however they may be unreachable (for example, you cannot SSH or access it due to your own misconfiguration) or they may be failing health checks... You are still billed for the EC2 instance as long as it's running. It's in your interest to fix any possible issues you might have with the resource itself that is not related to underlying infrastructure (things like networking misconfiguration or lost access keys, etc)

0

My understanding is that billing should start and stop based on the API request. So for EC2, from the time an instance is launched (created) until it is terminated or stopped.

Billed per second; Minimum of 1 Minute (On-demand, Reserved, Spot) - Amazon linux - Ubuntu - EBS

Billed per hour - Windows - Commercial Linux (Red Hat EL, SUSE)

This would be similiar for RDS but would depend on the OS. From the time a DB instance is launched until it is stopped or deleted.

Does this help? More info can be found here: https://aws.amazon.com/pricing/

답변함 2년 전
  • but how do you define created? Is it the moment the instance is initializing or the moment it is done initializing and is ready to accept requests?

  • Not exactly. The instances are billed only when they are in the "running" state. If they are in any other state - they are not charged. For example, when you want to shut it down, it will be in "terminating" state for a while, as soon as the state changes - you are no longer billed for it (since it's not "running" anymore).

    With that said, note that sometimes EC2 instances may be in the "running" state, however they may be unreachable (for example, you cannot SSH or access it due to your own misconfiguration) or they may be failing health checks... You are still billed for the EC2 running instance in this case. It's in your interest to fix any possible issues you might have with the resource itself that is not related to underlying infrastructure (things like networking misconfiguration or lost access keys, etc)

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠