Skip to content

"'null' values are not allowed in templates" error for permissions when provider.versionFunctions is set to false #104

Open
@dancoates

Description

@dancoates

When provider.versionFunctions is set to false in the serverless.yml some nulls end up in the cloudformation-template-create-alias-stack.json

      "DependsOn": [
        null,
        null
      ]

which results in the following error in deployment:

[/Resources/<FunctionName>LambdaPermissionApiGateway/DependsOn/0] 'null' values are not allowed in templates

If function versioning is required it would be great to have a more clear error message.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions