createTriggers function in file .sst/platform/src/components/aws/cognito-user-pool.ts currently returns full function object.
The triggers are then directly passed to the lambdaConfig properties on line 278.
However, this property is expecting the arn value. Fix returns this value instead.
Cognito doesn't automatically have permission to invoke the trigger functions. So new permissions policies have to be created for each of the functions after the pool has been created
fixes issue #361
createTriggers function in file .sst/platform/src/components/aws/cognito-user-pool.ts currently returns full function object.
The triggers are then directly passed to the lambdaConfig properties on line 278. However, this property is expecting the arn value. Fix returns this value instead.
Cognito doesn't automatically have permission to invoke the trigger functions. So new permissions policies have to be created for each of the functions after the pool has been created