What makes an AMI ineligible for EC2 Spot?

0

I have a Ubuntu Pro 22.04 AMI built using packer which I can launch on-demand EC2 instances with successfully. When I try to use it for Spot. However, when I try to use that AMI in an Auto Scaling Group of Spot instances I get this error:

Status: Failed Description: Launching a new EC2 instance. Status Reason: Spot instance requests are not supported for this AMI. Launching EC2 instance failed.

I have used the same Packer process to build Ubuntu Pro 20.04 AMIs in another AWS account of the same org, and have been able to use that AMI in Auto Scaling Groups with Spot instances. Is it a licensing issue?

I've tried every combination of words to Google for why an AMI may not be supported for Spot, but have found nothing of use.

Any pointers on what I'm doing wrong?

  • Are you able to launch a spot instance using the original unmodified AMI (the one that you subsequently customised)?

  • This one: https://aws.amazon.com/marketplace/pp/prodview-uy7jg4dds3qjw I cannot, so I guess that is the problem.

    I now notice that my "Ubuntu Pro 20.04" AMIs are actually based on the LTS AMIs, not the Pro AMIs. For those AMIs we install the Ubuntu Pro tools when building the image with Packer, and enroll the instance at launch time. For the new AMIs we built directly on top of AWS-provided Pro AMI, and those seem to disallow Spot entirely.

2 Answers
0

There is no restrictions on launching spot instances with a specific AMIs.

Having said that the AMIs which have license needed to be purchase will cause such reported issues. This is true for Ubuntu Pro AMIs, Windows Pro AMIs and RedHat BOYL AMIs

profile picture
EXPERT
answered 8 months ago
  • In all my searching I didn't find any reference to the AWS-provided Ubuntu Pro 22.04 AMI being disallowed for Spot usage. It's not a Ubuntu Pro Services restriction as we have launched the non-Pro AMI on Spot and enrolled the machine post-launch. I have emailed canonical-info@amazon.com to ask.

0

Response from canonical-info@amazon.com:

We'd like to inform you that currently, using Spot Instances with Ubuntu Pro is not supported. We've identified an issue in our console that inadvertently allows users to select the Ubuntu Pro AMI when requesting Spot Instances. Our team is actively addressing this discrepancy and is committed to resolving it as quickly as possible.

At this time, supporting Ubuntu Pro is not in our immediate plans. However, we value your feedback and have taken your request into consideration for our future product roadmap. We always aim to align our development with the needs and preferences of our customers.

answered 6 months ago

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