-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Cognito User Pool gets recreated every time when string_attribute_constraints aren't defined #4227
Comments
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
As far as I can tell, this issue is still present. |
Hi @jyrkiput, thanks again for creating this issue and apologies you came across this confusing error! There have been a lot of relevant changes in the Terraform Core and Terraform AWS Provider codebases since this issue was originally reported so as a first step it might be best to try updating to recent versions of both and seeing if any of those updates may have resolved this issue. Attempting to troubleshoot these types of errors is very difficult in Terraform 0.11 and earlier as those versions will report this problem ( In Terraform 0.12 and later, the "value did not match" type of error can now be found with the newer That said, if the configuration does happen to reproduce the newer |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Terraform Version
Terraform v0.11.7
Affected Resource(s)
aws_cognito_user_pool
Terraform Configuration Files
Minimal case
Debug Output
Both stdout and stderr
https://gist.github.com/jyrkiput/47873e5fba67641175fdd8cc87e6af92
Expected Behavior
Nothing should change and run should complete
Actual Behavior
On second run, Terraform tries to replace user pool as existing attribute changes. Then this change fails with
aws_cognito_user_pool.pool: aws_cognito_user_pool.pool: diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue.
Steps to Reproduce
terraform apply
terraform apply
References
The text was updated successfully, but these errors were encountered: