对于我最近所做的一项 EC2 配置更改,我需要您的帮助。
我有 14 个 EC2 On-Demand 运行实例,后来我才知道,我实际上可以通过购买预留实例将成本降低一半。
首先,我购买了 1 个与按需实例类型匹配的预留实例,并立即应用了计费折扣(我可以根据此视频确认这一点:https ://www.youtube.com/watch?v= rvdnJrLlWJs)。
然后我继续购买了 4 个预留实例,如下所示:
购买后,我希望看到应用的计费折扣,但我在 No Region 下看到了 RI(如下所示)。我选择的配置与单实例的配置完全相同,唯一的区别是实例数量为 4。
我可以确认我所有的 14 个 EC2 Running On-Demand 实例都属于 t2.medium 系列。
请帮助和建议。谢谢
[更新]基于@aws-ps建议的方法,我得到了:
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