Skip to content

spot-instances-request tags breaks on-demand instances #4561

Closed

Description

@Giaco9NN

Hi.
Today we upgraded the module from version 6.4.3 to 6.5.1. Our groups based only on on-demand instances got stuck right after the upgrade. The scale-up lambda silently fails with this error:
"You cannot specify tags for Spot instances requests if there are no Spot instances requests being created by the request."

Below you can see the whole lambda logs:

logs.txt

How can we avoid putting those tags in the launch template when running only on-demand instances?

Thanks!

Activity

  1. added
    bug
    on Apr 22, 2025
  2. npalm commented on Apr 22, 2025

    @npalm
    Member

    Thx for reporting, If time allows would you be great if you can raise a PR.

  3. npalm commented on Apr 22, 2025

    @npalm
    Member

    Created a PR, rquires some testing before merging.

  4. Giaco9NN commented on Apr 23, 2025

    @Giaco9NN
    Author

    Hi @npalm, thanks for the help.
    I didn't raise a pull request because I wanted to agree on the strategy before implementing it.

    Thank you for the help and the rapid fix!

  5. pwo3 commented on May 13, 2025

    @pwo3
    Contributor

    Hi,

    I still have this issue when spot instances are not available and trying to fallback on on-demand
    (I'm using this parameter enable_on_demand_failover_for_errors = ["InsufficientInstanceCapacity"])

    My logs are :

    There is no Spot capacity available that matches your request.
    Create fleet failed, initatiing fall back to on demand instances.
    You cannot specify tags for Spot instances requests if there are no Spot instances requests being created by the request.
    

    Thanks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions