Skip to content

Serverless 1.27.x breaks the plugin: Any policy not added to alias of lambda function for all events #120

Closed
@c--m

Description

@c--m

serverless : 1.27.2
serverless-aws-alias : 1.7.0

After a fresh sls deploy, or subsequent sls deploy --alias alias, the aliases of my lambda functions don't have any Api Gateway trigger attached, nor any function policy. Those are attached only on my bare function without any identifier ($LATEST, or alias, or version number)

As a result, none of my Api Gateway resources are working, since they are referred to with the alias (MyProject-dev-myFunction:${stageVariables.SERVERLESS_ALIAS})

All the rest seems to be set up properly

capture

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions