sst / ion

❍ — a new engine for SST
https://ion.sst.dev
MIT License
1.09k stars 126 forks source link

fix: return valid arn from createTriggers function #447

Closed jaduplessis closed 1 month ago

jaduplessis commented 1 month ago

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

fwang commented 1 month ago

Thanks @jaduplessis!