Get spot instance cost by costExplorer get-cost-and-usage cli

0

I created a spot instance, and after a day, I use costExplorer get-cost-and-usage to get real cost of this instance. But I got the cost is the same with on demand pricing.

I'm starting to doubt my instance is spot or not. I can see my instance "Lifecycle" is "Spot" in ec2 console. And I can see this instance in "Spot Requests" list.

If we confirm the instance is spot, so my question is whether costExplorer api can get spot instance cost and how to get it?

Thanks, Mingtong

AWS
已提問 1 年前檢視次數 531 次
1 個回答
0

Hi - I think this blog provides a very good overview of what you are looking for. https://aws.amazon.com/blogs/compute/diving-deep-into-ec2-spot-instance-cost-and-operational-practices/. See under "Cost management tools" options. It also points out some best practices of using tags.

profile pictureAWS
專家
已回答 1 年前

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

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

回答問題指南