Skip to content

Function URL should point to the deployed version when versioning is enabled #6720

@anatolzak

Description

@anatolzak

Problem

When versioning: true is set on a function, the function URL still points to $LATEST. This means every invocation via the URL runs whatever code $LATEST currently holds.

Expected behavior

At minimum, the function URL should be pinned to a specific published version.

Ideally, the function URL should point to an alias. This setup allows you to roll back the version on the alias without modifying the Function URL configuration or the Lambda permission configuration. If the URL points to a specific version, you must update it to make the older version the primary target. With an alias, this is not an issue. You only need to update the version that the alias points to, and requests will start reaching the older version.

Related

This is part of a broader issue: when versioning is enabled, all event sources (not just function URLs) should invoke through an alias rather than $LATEST or a bare version number. See #6722

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions