- Newest
- Most votes
- Most comments
Since I was using v1 AWS CLI, I thought that using v2 could have a passed validation, so I upgraded.
Now, using the same update command, I got
An error occurred (InvalidParameterException) when calling the UpdateUserPool operation: Please use TemporaryPasswordValidityDays in PasswordPolicy instead of UnusedAccountValidityDays
with
"PasswordPolicy": {
"RequireNumbers": true,
"RequireLowercase": true,
"RequireSymbols": false,
"RequireUppercase": true,
"TemporaryPasswordValidityDays": 14,
"MinimumLength": 8
}
, so the issue seems again about TemporaryPasswordValidityDays just changed a little.
This thing started puzzling me a lot... by comparing update skeleton or even reading AWS CloudFormation reference for AWS::Cognito::UserPool PasswordPolicy https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html we are allowed to use TemporaryPasswordValidityDays.
Comparing for what is raised on error, the only occurence for UnusedAccountValidityDays is in another part of the file
"AdminCreateUserConfig": {
"UnusedAccountValidityDays": 14,
"AllowAdminCreateUserOnly": false,
"InviteMessageTemplate": {
"EmailSubject": "AIR - La tua password temporanea",
"SMSMessage": "Il nome utente è {username} e la password temporanea è {####}. ",
"EmailMessage": "Il nome utente è {username} e la password temporanea è {####}."
}
},
that I can see still valid at https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-admincreateuserconfig.html as AWS CloudFormation reference.
So now I start doubting about validation...
The side questions are now: What is the purpose of validation that raises error when input is fine? Is it possible to skip this kind of validation?
Thanks
I tried mixed configurations and in the end I got a successful update by deleting AdminCreateUserConfig.UnusedAccountValidityDays
Relevant content
- asked a year ago
- asked 6 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago