Can't cancel spot fleet request

0

EDIT (see below for the original question): I was able to solve my issue by getting the Fleet ID (starts with "fleet-") from the Spot Request's Tags and then running the following on the instance via the CLI (be sure to replace FLEET-ID and edit the region if needed):

aws ec2 delete-fleets --fleet-ids "FLEET-ID" --terminate-instances --region "us-east-1"

Note: This causes the fleet's instances to be terminated and the fleet to be deleted. After that, no new instances where created.

I'm not sure why I couldn't see my fleet in the AWS Management Console (I was logged in as the root user), maybe the fleet wasn't displayed because it only consisted of one Spot instance and no On-Demand instances? If the AWS team wants to test this, please feel free to reach out to me, I'm happy to provide all steps to reproduce this issue.

Original question: Hi everyone, in order to test Spot Fleets, I have used the EC2 API action "CreateFleet" to create a fleet of one Spot instance and zero On-Demand instances. I have used a Launch template, worked well. Instance type is t4g.nano, Fleet Target Capacity is set to one instance.

Now I seemingly can't cancel the fleet request: In the console, when clicking EC2 - Instances - Spot Requests, only the Spot Request is listed, but not the Fleet Request. If I cancel the Spot Request with the option to terminate the instances assigned to it, the instances are terminated, but of course a new Spot Request is immediately created.

If it helps, the Spot Request's Persistence is "one-time".

Thank you!

asked a year ago110 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions