Cloud Formation AWS::Cognito::UserPoolUser temporary password

时光毁灭记忆、已成空白 提交于 2020-01-04 07:42:12

问题


I'm creating Cognito user using Cloud Formation template for Kibana cognito authentication. How to provide temporary password in the template?


回答1:


Far as I know, you can't do this via AWS::Cognito::UserPoolUser which I believe you are using.

Set up a password policy in the UserPool creation and it should do the job.

Type: AWS::Cognito::UserPool
  DeletionPolicy: Retain
  Properties:
    UserPoolName: UserPoolName
    AdminCreateUserConfig:
      AllowAdminCreateUserOnly: true
    Policies:
      PasswordPolicy:
        MinimumLength: 16
        RequireLowercase: true
        RequireNumbers: true


来源:https://stackoverflow.com/questions/51797239/cloud-formation-awscognitouserpooluser-temporary-password

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!