Add GetSpotInstancesAction to retrieve action from spot instances like on demand instances #5142
Open
1 of 2 tasks
Labels
closing-soon
This issue will close in 4 days unless further comments are made.
feature-request
A feature should be added or improved.
Describe the feature
Currently, the aws-sdk-java includes the method getInstanceAction(), which retrieves data from the URL "/latest/meta-data/instance-action". However, to access the action of a spot instance, we must retrieve it from the URL "/latest/meta-data/spot/instance-action".
Use Case
I aim to determine if AWS will claim my spot instance, and when, adjusting my calculations accordingly. I prefer not to utilize the AWS CLI since I'm already employing the AWS SDK for Java.
Proposed Solution
Other Information
No response
Acknowledgements
AWS Java SDK version used
2.25.17
JDK version used
openjdk version "17.0.8.1"
Operating System and version
Linux
The text was updated successfully, but these errors were encountered: