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 Risposta
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
ESPERTO
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande