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 Resposta
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
ESPECIALISTA
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas