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

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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则