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?

已提問 9 個月前檢視次數 408 次
1 個回答
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
專家
已回答 9 個月前
  • Do you have any further questions, happy to help.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南