Cognito::UserPool normalizedPoolId

Hi there,
I’m trying to make this here work:

functions:
  pre-sign-up:
    handler: entrypoints/lambda.presignup
    events:
      - cognitoUserPool:
          pool: MyUserPool
          trigger: PreSignUp

resources:
  Resources:
    CognitoUserPoolMyUserPool:
      Type: AWS::Cognito::UserPool

happening

  • The UserPool “MyUserPool” already exists (previously created by CFN)
  • after serverless deploy i have two UserPools with the same name
  • the new one has the correct trigger

expected

  • the already existing UserPool has the correct trigger.

What am I doing wrong?
And what does the normalizedPoolId shoud look like? any examples?

BR

Maik

1 Like

The normalized id should would be MuUserPool that means the CF name ought to be CognitoUserPoolMyUserPool like you suggest, however this seems not to be the case.

In my case I have AppUserPool and this is the sls output:

CloudFormation - CREATE_IN_PROGRESS - AWS::Cognito::UserPool - AppUserPool

Either the docs are wrong or there is a bug IMO.