-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[aws-cognito] Change domainPrefix after initial deploy #10062
Comments
It seems like this is a limitation of the Cognito backend service that does not let user pool domain be updated. Can you try a 2-stage deploy? First, remove the |
Yeah, I tried that workaround when I was trying to update the domain and it works. I was posting the bug report because I felt that it didn't behave as I was expecting it to. |
Internal tracking: i/CFN-33216 |
gh-274 This is based on the workaround for the exact problem described here: aws/aws-cdk#10062 Basically I got the error "User pool already has a domain configured." when I tried to rename the User Pool Domain. So here I'm deleting the user pool domain so I can re-deploy it with a new name. It's the workaround described as a "2-stage deploy" in the issue comments.
gh-274 This is to complete the 2-step deploy described here: aws/aws-cdk#10062 (comment) I'm renaming the Cognito User Pool Domain with a fixed-size string with acceptable letters for a Domain prefix, and that varies based on the repo namespace, repo name, branch, and account.
The 2 stage deployment worked with me, weird that the cdk has this issue |
I've reached out on the original ticket posted by niranjan. Hopefully will get a response soon |
The inability to update |
I wanted to change the hosted UI domain prefix after an initial deploy (
userPoolCognitoDomainPrefix
), but I'm getting a 400 on subsequent deploys. (I've just recently started to work with Cognito with CDK, so there might be some constraints in Cognito I'm not aware of. Keep up the good work!)Reproduction Steps
What did you expect to happen?
The domain should update and remove the old one as it's no longer specified.
What actually happened?
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: