Skip to content

Throws error when using 'disableLogs' on functions #127

@mklenbw

Description

@mklenbw

If you set disableLogs: true in functions it will remove the LogGroup and thus the dependsOn.

This plugin checks for dependsOn to be an array and throws otherwise. Means disabling log-groups will lead serverless-iam-roles-per-function to throw.

See https://github.com/functionalone/serverless-iam-roles-per-function/blob/1bb7ca7da33385ac9b38f70aee9dd9c0da052382/src/lib/index.ts#L184C1-L185C1

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