aws-solutions / network-orchestration-for-aws-transit-gateway

The Network Orchestration for AWS Transit Gateway solution automates the process of setting up and managing transit networks in distributed AWS environments. It creates a web interface to help control, audit, and approve (transit) network changes.
https://aws.amazon.com/solutions/implementations/serverless-transit-network-orchestrator/
Apache License 2.0
110 stars 48 forks source link

Error When Updating ConsoleLoginInformationEmail Variable #52

Closed dlouks closed 1 year ago

dlouks commented 2 years ago

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

abhinay-reddy-asi commented 1 year ago

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.