1 Answer
- Newest
- Most votes
- Most comments
2
Yes, you can use ec2.describe_instances() and check for the InstanceLifecycle value which for a spot instance will be 'spot'. There may also be a 'SpotInstanceRequestId' value.
answered 3 years ago
Relevant content
- asked 3 years ago
- asked 3 months ago
- asked 4 years ago
- AWS OFFICIALUpdated 3 years ago
