-1

I need your help for one of the EC2 configuration changes I made recently.

I have 14 EC2 On-Demand running instances and sometime back I came to know that, I can actually reduce cost to half by purchasing reserved instances.

To begin with, I'd purchased 1 Reserved instance that matches with the On-Demand instance type and the billing discount applied immediately (I can confirm this based on this video: https://www.youtube.com/watch?v=rvdnJrLlWJs).

Then I went ahead and purchased 4 more Reserved Instances as shown below:

enter image description here

enter image description here

After purchase I was expecting to see the billing discount applied but instead I saw RIs under No Region (show below). The configuration that I chose were exactly the same as I had for the single instance, the only difference here is the quantity of instances are 4.

enter image description here

I can confirm that all of my 14 EC2 Running On-Demand instances are of t2.medium family.

Kindly help and suggest. Thanks

[UPDATE] Based on the approach @aws-ps suggested here's what I got:

Does not support vpc yet, please be careful when trusting these results
Does not support vpc yet, please be careful when trusting these results
Does not support vpc yet, please be careful when trusting these results
Does not support vpc yet, please be careful when trusting these results
Does not support vpc yet, please be careful when trusting these results
Does not support vpc yet, please be careful when trusting these results
Does not support vpc yet, please be careful when trusting these results
Does not support vpc yet, please be careful when trusting these results
Does not support vpc yet, please be careful when trusting these results
Does not support vpc yet, please be careful when trusting these results
Does not support vpc yet, please be careful when trusting these results
Does not support vpc yet, please be careful when trusting these results
Does not support vpc yet, please be careful when trusting these results
Does not support vpc yet, please be careful when trusting these results
Congratulations, you have no unused reservations

Congratulations, you have no unreserved instances
Traceback (most recent call last):
  File "./ec2-check-reserved-instances.py", line 84, in <module>
    qty_running_instances = reduce( lambda x, y: x+y, running_instances.values() )
TypeError: reduce() of empty sequence with no initial value
Puneet Pandey
  • 541
  • 2
  • 6
  • 23
  • You can contact AWS Customer Service (which is different to AWS Support). They can assist with queries related to Billing and Reserved Instances. They are experts in these types of questions. – John Rotenstein Apr 04 '20 at 00:52
  • Already in conversation with them. This was the first thing I did – Puneet Pandey Apr 06 '20 at 07:53

2 Answers2

0

I'd recommend using this script

https://github.com/epheph/ec2-check-reserved-instances

sometimes the billing is not reflected immediately but this tool helps me in confirm the RI setup

AWS PS
  • 4,420
  • 1
  • 9
  • 22
  • Thanks @aws-ps for providing the info and a way to check but is it possible to run this script as a IAM user or only Root user can run this? I am trying to run this script as a IAM user and getting permission denied message – Puneet Pandey Apr 03 '20 at 10:04
  • of course, it can be executed with an IAM user who has proper permissions – AWS PS Apr 03 '20 at 10:10
  • can you suggest the permission this script requires, I will create/request for policy containing those permissions and assign this to my IAM user – Puneet Pandey Apr 03 '20 at 11:02
  • looks like it was problem with local file permission – Puneet Pandey Apr 03 '20 at 11:05
  • post updated and trail added of what I saw as an o/p of the command. Since the program broke in b/w so the current o/p is not clear – Puneet Pandey Apr 03 '20 at 11:14
  • I don't think this program is 100% okay because it's giving me `[]` when I try to print `ec2_conn.get_all_reserved_instances()` and o/p of `print reservations` is also confusing.. i thought this will give me my current running instances but i am unable to relate the o/p of this or am I missing somthing? – Puneet Pandey Apr 03 '20 at 11:36
  • I was able to see my On-Demand instances via Reservations but still this `ec2_conn.get_all_reserved_instances()` is giving me `[]`. Whereas I expecting this to give me 5 records – Puneet Pandey Apr 03 '20 at 12:08
0

Got response from AWS. Here's what they said:

Have reviewed account and can confirm that the reserved are being successfully applied to the instances. You can confirm this by reviewing the Utilization report for the reserved instances in your Cost Explorer. Would, however, like to inform you that it may take upto 48 hours for the reservation utilization data to be available. - https://aws.amazon.com/aws-cost-management/reserved-instance-reporting/

You can also confirm that the Reserved instances are being applied to the instances by reviewing the line item that reads Amazon Elastic Compute Cloud running Linux/UNIX Reserved Instances. You will see that the usage for the reserved instances increases.

Puneet Pandey
  • 541
  • 2
  • 6
  • 23