Request Spot Instances

GET {{aws_ec2_base_url}}/?AvailabilityZoneGroup&BlockDurationMinutes&ClientToken&DryRun&InstanceCount&InstanceInterruptionBehavior&LaunchGroup&LaunchSpecification&SpotPrice&Type&ValidFrom&ValidUntil&Action=RequestSpotInstances

Creates a Spot Instance request.

Request Params

KeyDatatypeRequiredDescription
AvailabilityZoneGroupnullThe user-specified name for a logical grouping of requests.
BlockDurationMinutesnullThe required duration for the Spot Instances (also known as Spot blocks), in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360).
ClientTokennullUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon EC2 User Guide for Linux Instances.
DryRunnullChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
InstanceCountnullThe maximum number of Spot Instances to launch.
InstanceInterruptionBehaviornullThe behavior when a Spot Instance is interrupted. The default is terminate.
LaunchGroupnullThe instance launch group. Launch groups are Spot Instances that launch together and terminate together.
LaunchSpecificationnullThe launch specification.
SpotPricenullThe maximum price per hour that you are willing to pay for a Spot Instance. The default is the On-Demand price.
TypenullThe Spot Instance request type.
ValidFromnullThe start date of the request. If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled.
ValidUntilnullThe end date of the request. If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date is reached. The default end date is 7 days from the current date.
Actionstring