cognito-idp update-user-pool overwrites lambda triggers #6698
Labels
closed-for-staleness
guidance
Question that needs advice or information.
lambda
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Hi, we want to enable multiple triggers from Cognito to Lambda aliases. While doing so aws CLI overwrites triggers. We were using aws-cli 2.0.31 but tried with latest version (2.4.16) as well with no luck.
Steps to reproduce -
Adding PostConfirmation trigger via the following command.
aws cognito-idp update-user-pool --user-pool-id poolid --lambda-config PostConfirmation=arn:aws:lambda:region:accountno:function:CognitoPostConfirmationFunction-dev:live
Verified on AWS Console that pool has Post Confirmation trigger.
Adding PreSignup trigger via the following command.
aws cognito-idp update-user-pool --user-pool-id poolid --lambda-config PreSignUp=arn:aws:lambda:region:accountno:function:CognitoPreSignupApproveFunction-dev:live
Verified that Post Confirmation is removed and Presignup trigger is shown.
Setup triggers via AWS Console and verified both triggers are active.
We would like to use AWS CLI instead of Console as Console doesn;t allow us to setup trigger to Lambda alias.
The text was updated successfully, but these errors were encountered: