Can you create a Reserved Instance using Cloud Formation template?

0

I don't think a Capacity Reservation keyword is the same thing, as there is no "term of commitment" as a parameter.

The link for feature I want to be able to implement in Cloudformation: https://us-east-1.console.aws.amazon.com/ec2/home?region=us-east-1#ReservedInstances:

Below, this is the closest cloudformation feature I found, but I don't think it is same as above EC2Reservation: Type: AWS::EC2::CapacityReservation

I want to buy t2.micro reserved instance, thru cloudformation: Seller Term Effective rate Upfront price Hourly rate Payment option Offering class Quantity available Desired quantity Normalized units per hour AWS 12 months $0.024 $213.00 $0.000 All upfront Standard Unlimited

Is this possible, and how?

asked 9 months ago392 views
1 Answer
1

Capacity reservation and reserved instance are two completely different thing, please refer Differences between Capacity Reservations, Reserved Instances, and Savings Plans section at On-Demand Capacity Reservations Documentation.

Please refer Capacity Reservation for more details about how capacity reservation works.

  • Capacity Reservation: Capacity Reservations enable you to reserve capacity for your Amazon EC2 instances in a specific Availability Zone for any duration. This gives you the flexibility to selectively add capacity reservations and still get the Regional RI discounts for that usage

  • Reserved Instance: EC2 RIs provide a discounted hourly rate and an optional capacity reservation for EC2 instances. AWS Billing automatically applies your RI’s discounted rate when attributes of EC2 instance usage match attributes of an active RI.

No, you can't purchase Reserved Instance through Cloudformation. You can create capacity reservation through CLI or Cloudformation but that has nothing to do with purchasing reserved instance.

Capacity Reservation through CLI

Capacity reservation through cloudformation

Additional Reference:

Hope you find this information helpful.

Comment here if you have additional questions, happy to help.

Abhishek

profile pictureAWS
EXPERT
answered 9 months ago
  • Do you have any further questions, happy to help.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions