云形成AWS :: Cognito :: UserPool用户临时密码 [英] Cloud Formation AWS::Cognito::UserPoolUser temporary password
本文介绍了云形成AWS :: Cognito :: UserPool用户临时密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Cloud Formation模板创建Kogni身份验证的Cognito用户。如何在模板中提供临时密码?
I'm creating Cognito user using Cloud Formation template for Kibana cognito authentication. How to provide temporary password in the template?
推荐答案
据我所知,您无法通过 AWS执行此操作:: Cognito :: UserPoolUser ,我相信您正在使用。
Far as I know, you can't do this via AWS::Cognito::UserPoolUser which I believe you are using.
在UserPool创建中设置密码策略,它应该可以完成工作。
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
这篇关于云形成AWS :: Cognito :: UserPool用户临时密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文