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