24

As far as I understand AWS Elastic Beanstalk will allow you to set auto-scaling, which means that you can use a micro-instance overnight, say, and auto-scale up during the day. Can you still take advantage of reserved EC2 instance pricing if you do this?

Steffen Opel
  • 63,899
  • 11
  • 192
  • 211
Chris Wheadon
  • 840
  • 6
  • 17

1 Answers1

34

Update (Sept 2013)

AWS has just announced support to Modify EC2 Reserved Instance Reservations, which removes two of the former restrictions (I've updated my initial answer accordingly):

Today we are making the Reserved Instance model even more flexible by giving you the power to modify your Reserved Instances (RI's) when your needs change. You can now move your RI's between Availability Zones as long as you stay within the same Region. If your AWS account is enabled for EC2-Classic, you can also move your RI's between EC2-Classic and EC2-VPC. You can now make adjustments to your Reserved Instances as your needs and your architecture change.


Initial Answer (updated)

Can you still take advantage of reserved EC2 instance pricing if you do this?

Absolutely, Amazon EC2 reserved instance billing and usage is handled transparently, i.e. AWS simply applies your reserved instance pricing as long as you have reserved instances available matching your running ones by type, region and availability zone, see the following FAQs for details:

Beware of the restrictions regarding how instances from this virtual pool are matched though, e.g.:

The latter is easily overlooked when starting instances without explicitly specifying an availability zone, which will yield a random one in turn.

Chuck Le Butt
  • 47,570
  • 62
  • 203
  • 289
Steffen Opel
  • 63,899
  • 11
  • 192
  • 211
  • 3
    Thank you, a very comprehensive answer. So, just to be absolutely clear, if I have a reserved micro-instance and the beanstalk scales up beyond its capacity I'll pay an on-demand price while it is scaled to that level? – Chris Wheadon Oct 11 '12 at 18:14
  • 2
    Yes - in more general terms: You'll pay the on-demand price for every additional running instance above the number of reserved instances you have purchased. Obviously you could purchase more than one reserved instance, e.g. a heavy utilization one to cover the 24/7 instance and one (or more) medium or light utilization instance(s) covering the additional daily scale out scenario. – Steffen Opel Oct 13 '12 at 15:34