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
If you set
disableLogs: truein functions it will remove the LogGroup and thus thedependsOn.This plugin checks for
dependsOnto be an array and throws otherwise. Means disabling log-groups will leadserverless-iam-roles-per-functionto throw.See https://github.com/functionalone/serverless-iam-roles-per-function/blob/1bb7ca7da33385ac9b38f70aee9dd9c0da052382/src/lib/index.ts#L184C1-L185C1