Closed adrians5j closed 3 weeks ago
Tried this trick, seems like it's working. Gonna do some more testing.
Thanks for the details @adrians5j
Here's what I've understood from your issue:
Have I understood correctly? Please could you provide the versions you were moving from and to?
I would like to +1 this bug as I have also encountered this intermittently. I did not change Pulumi versions, I have a User Pool with the recovery options set already (for verified email), so the listed "trick" above does not work in my case and the UpdateUserPoolInput.AccountRecoverySetting.RecoveryMechanisms
field size is 1 so it shouldn't be failing. I did not remove or add any additional recovery options, so it is odd to receive this error intermittently. I attempted to deploy again and, to my surprise, it deployed successfully, even though no changes to the Pulumi code was made, on the third deployment attempt.
I did see a similar issue with Terraform which was later resolved after a subsequent Terraform version, so it may be resolved with Pulumi upon updating versions
@zackbrown-producepay could you provide a complete example program which reproduces this issue reliably? Thanks!
Not sure, but this might not even have to do anything with Pulumi.
I opened an older project that was using 5.10, and this change started popping up. Once I've applied the above-mentioned fix, all good.
I've only been able to reproduce this issue when providing something like the below example. I will note though that when using the below app, the error message is correct! I've tried with a bunch of other combinations and I cannot reproduce this error with any other configuration.
new aws.cognito.UserPool('chall-pool', {
accountRecoverySetting: {},
});
My hunch is that this has been fixed sometime since this was reported. If anyone is still experiencing this issue please let us know!
What happened?
Today I tried to redeploy my existing Cognito user pool via the new Pulumi version, and got:
Screenshot:![image](https://user-images.githubusercontent.com/5121148/224957956-6bfa38e8-10c0-40cf-836c-68540f3d2e14.png)
Before that I also tried doing the preview:
What's funny is that if I just try again, the redeployment will pass. But then, if I try to redeploy for the 3rd time, then it again fails with the same errors.
And also, the deployment of a new Cognito user pool works correctly actually. It's just the following redeploy that's showing the above error.
Expected Behavior
Redeploy should successfully happen, without errors.
Steps to reproduce
Deploy a new Cognito user pool, and then try to redeploy it.
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).