I'm using serverless to deploy an AWS CloudFormation template and some functions, here is a part of my serverless.yml file:
resources:
Resources:
MyUserPool: #An inline comment
Type: "AWS::Cognito::UserPool"
Properties:
UserPoolName: "MyUserPool"
Policies:
PasswordPolicy:
MinimumLength: 7
RequireLowercase: false
RequireNumbers: true
RequireSymbols: false
RequireUppercase: false
functions:
preSignUp:
handler: presignup.validate
events:
- cognitoUserPool:
pool: "MyUserPool"
trigger: PreSignUp
As you can see, both user pool names are the same, but when I run serverless deploy, 2 user pools with the same name are created.
Is this a bug or am I missing something?