Error When Updating ConsoleLoginInformationEmail Variable
Closed this issue · 1 comments
Describe the bug
When updating the email address for Cognito, ConsoleLoginInformationEmail
, CloudFormation throws the following errors.
2022-05-26 16:04:26 UTC-0500 | UserPoolUserReadOnly | UPDATE_FAILED | CloudFormation cannot update a stack when a custom-named resource requires replacing. Rename us-west-2_K6oTYrTti|readonlyuser and update the stack again. |
---|---|---|---|
2022-05-26 16:04:26 UTC-0500 | UserPoolUserAdmin | UPDATE_FAILED | CloudFormation cannot update a stack when a custom-named resource requires replacing. Rename us-west-2_K6oTYrTti|adminuser and update the stack again. |
To Reproduce
Deploy v3.0.1 with CloudFormation. Update the stack and set ConsoleLoginInformationEmail
to a different email address.
Expected behavior
The email address in Cognito is updated to the new email address.
Please complete the following information about the solution:
Version: v3.0.1
Hello
Thanks for bringing this issue to our attention.
We confirm that Cloud Formation doesn't allow us to update the email of a custom named Cognito user. As a workaround, you can change the Admin Username and Read-Only Username parameters at the same time as the Console Login Information Email parameter. Then, Cloud Formation will replace the existing Cognito user with the new one.
We will include this information into the implementation guide with the next release.