Skip to content

EC2: CreateLaunchTemplateVersion and ModifyLaunchTemplate are unregistered #456

Closed

Description

@scttfrdmn

What

The EC2 plugin registers only CreateLaunchTemplate, DescribeLaunchTemplates and DeleteLaunchTemplate. A consumer that versions a template — the normal way to evolve one without recreating it — gets an unknown-action error for:

  • CreateLaunchTemplateVersion
  • ModifyLaunchTemplate (sets the default version)
  • DescribeLaunchTemplateVersions
  • DeleteLaunchTemplateVersions

Substrate also has no version concept at all: CreateLaunchTemplate stores one EC2LaunchTemplateData with no version number, and LaunchTemplate.Version on a RunInstances request is not consulted.

Adjacent to #444 but out of its scope — that issue was about a template's data being discarded, not about versioning.

Acceptance criteria

  • Confirm request/response shapes and error codes against the EC2 API reference, including DefaultVersionNumber / LatestVersionNumber on the template summary and $Latest / $Default as version specifiers.
  • Templates store an ordered version list; CreateLaunchTemplate creates version 1 and it is both the latest and the default.
  • CreateLaunchTemplateVersion appends, returning the new version number; SourceVersion is honored.
  • ModifyLaunchTemplate sets the default version, rejecting a version that does not exist.
  • RunInstances and CreateFleet resolve LaunchTemplate.Version — a number, $Latest, $Default, and absent (which means the default version, not the latest — confirm this).
  • DeleteLaunchTemplateVersions cannot delete the default version, matching AWS.
  • DescribeLaunchTemplateVersions supports version filtering and pagination.
  • Existing single-version templates keep working, including the EC2: launch template NetworkInterfaces is dropped, so template-specified subnets are ignored #444 network-interface data.
  • docs/services.md operation table and make docs-reference updated.

Activity

  1. modified the milestones: v0.85.0, v0.86.0 on Aug 1, 2026
  2. scttfrdmn commented on Aug 2, 2026

    @scttfrdmn
    OwnerAuthor

    Moved from the v0.85.0 milestone to v0.86.0, which is now cut and closed.

    Deliberately deferred as feature-scale. Unlike the four defects v0.85.0 shipped,
    this one needs a new storage shape: versioning means a template holds an
    ordered set of versions rather than today's single LatestData, plus
    $Latest/$Default resolution at launch time and a migration path for templates
    already stored in the current single-version form. That is a design decision, not
    a fix.

    One thing v0.85.0 changed that bears on it: #453 means runInstances now resolves
    a launch template even when the request also carries ImageId. So whatever
    version-resolution this issue lands will sit on a path that is now exercised by
    strictly more launches than before — including every fleet launch whose override
    names an AMI. Worth knowing when it gets picked up.

    No work has started.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions