1 Answer
- Newest
- Most votes
- Most comments
1
Hi, this article is probably the right guidance for your goal:
It gives all details around the options of the command below, which is the one you are looking for
aws ec2 request-spot-instances \
--instance-count 5 \
--block-duration-minutes 120 \
--type "one-time" \
--launch-specification file://specification.json
Reference doc is at https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/request-spot-instances.html
Hope it helps!
Didier
Relevant content
- Accepted Answerasked 2 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 8 days ago
- AWS OFFICIALUpdated a year ago