I tried to create multiple user pools in my serverless.yml file but don’t seem to get the formatting right.
resources:
Resources:
UserPool:
Type: AWS::Cognito::UserPool
Properties:
UserPoolName: ${self:service}-${self:provider.stage}-client-user-pool
....
i tried seperating them with:
resources:
Resources:
UserPool:
- Type: AWS::Cognito::UserPool
Properties:
UserPoolName: ${self:service}-${self:provider.stage}-client-user-pool
....
- Type: AWS::Cognito::UserPool
Properties:
UserPoolName: ${self:service}-${self:provider.stage}-manager-user-pool
...
but i get Template format error: [/Resources/UserPool] resource definition is malformed
Is there a way to define multiple user pools in the resources section, i need one for the clients and a seperate one for the backend
thank you
gr Marco