Does manually terminating a spot instance following an interruption notice and within the first hour incur charges?

186 views Asked by At

I am using EC2 Spot Instance interruption notices to architect a fault tolerant application running on Amazon Linux. On receiving the warning, some logs are stored and I no longer need the instance for the upcoming 2 minutes. If Amazon EC2 interrupts a spot instance in the first hour, it should not be charged according to the documentation. After storing the logs, should I check instance run time before triggering a termination request? e.g. If it has been running for less than 58 minutes, just keep it running to avoid getting charged for the first hour. Will an api termination request cause it to be considered a billable manual termination despite the interruption warning?

0

There are 0 answers