Error when update Cognito pool for a CustomEmailSender

0

Hi, I am trying to update an existing Cognito User Pool to make it send Emails using a third-party provider, I am following every detail mentioned in https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-custom-email-sender.html However when it comes to updating the pool using a CLI command "aws cognito-idp update-user-pool --lambda-config " I receive the following error:

Parameter validation failed: Unknown parameter in LambdaConfig: "CustomEmailSender", must be one of: PreSignUp, CustomMessage, PostConfirmation, PreAuthentication, PostAuthentication, DefineAuthChallenge, CreateAuthChallenge, VerifyAuthChallengeResponse, PreTokenGeneration, UserMigration Unknown parameter in LambdaConfig: "KMSKeyID", must be one of: PreSignUp, CustomMessage, PostConfirmation, PreAuthentication, PostAuthentication, DefineAuthChallenge, CreateAuthChallenge, VerifyAuthChallengeResponse, PreTokenGeneration, UserMigration

so what I understand is the CustomEmailSender is for some reason had been rejected as aparameter! and at same time this is not available in the console either.

I can set a CustomEmailSender only when i create a user pool using CloudFormation YAML script, but I am unable to update exisiting one

Help in this is highly appreciated.

1개 답변
2
수락된 답변

Could you check if you are using the latest version of CLI? Latest version should support this.

AWS
kJay
답변함 일 년 전
  • Thanks @KJay This actually made a difference! I updated the CLI to the latest version and it worked as expected.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠