问题描述
我正在尝试从以下位置更新我的 Cognito 用户池:
Resources:
CognitoUserPool:
Type: AWS::Cognito::UserPool
# Makes sure to delete the resource when the stack is deleted
DeletionPolicy: Delete
Properties:
# Generate a name based on the stage
UserPoolName: ${self:custom.cognito.user-pool}
# Set email as an alias
UsernameAttributes:
- email
AutoVerifiedAttributes:
- email
到:
Resources:
CognitoUserPool:
Type: AWS::Cognito::UserPool
# Makes sure to delete the resource when the stack is deleted
DeletionPolicy: Delete
Properties:
# Generate a name based on the stage
UserPoolName: ${self:custom.cognito.user-pool}
# Set username as an alias
AliasAttributes:
- preferred_username
AutoVerifiedAttributes:
- email
尝试部署时,我收到以下错误消息:
An error occurred: CognitoUserPool - Updates are not allowed for property - AliasAttributes. (Service: AWSCognitoIdentityProvider; Status Code: 400; Error Code: InvalidParameterException; Request ID: null; Proxy: null).
我想我可能需要删除我的池并从头开始重新创建它,但我不知道如何留住我的用户。
我该怎么做?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)