You can create a Spot Fleet request and specify a launch template in the instance configuration. When Amazon EC2 fulfills the Spot Fleet request, it uses the launch parameters defined in the associated launch template.
To create a Spot Fleet request using the recommended settings
Open the Spot console at https://console.aws.amazon.com/ec2spot.
If you are new to Spot, you see a welcome page; choose Get started. Otherwise, choose Request Spot Instances.
For Tell us your application or task need, choose Flexible workloads.
Under Configure your instances:
Under Tell us how much capacity you need, for Total target capacity, specify 6 vCPUs, and for Optional On-Demand portion, specify 2 vCPUs.
Check the box for Maintain target capacity. Leave the Interruption behavior as Terminate.
Review the recommended Fleet request settings based on your application or task selection, and choose Launch.
The request type is fleet. When the request is fulfilled, requests of type instance are added, where the state is active and the status is fulfilled.
The Spot Fleet launches Spot Instances when your maximum price exceeds the Spot price and capacity is available. The Spot Instances run until they are interrupted or you terminate them.
To monitor your Spot Fleet using the console