How to troubleshoot "GeneralServiceException"? Cognito UserPool update via CloudFormation

0

Hi, my CoudFormation stack update fails on the update event of a Cognito UserPool, with the output:

Resource handler returned message: "null" (RequestToken: e2919cf2-ccff-91b2-8c60-c1ad8a414450, HandlerErrorCode: GeneralServiceException)

The same stack update succeeded on my previous environments, so I'm confident my template is actually good. And there shouldn't be a change to the UserPool in the first place, the resource is not supposed to change at all.

Given the generic error message, I'm out of clues how to even investigate the problem. Any hint would be highly appreciated!

Thiemo
已提問 9 個月前檢視次數 219 次
1 個回答
3

Hello.

Before looking elsewhere, it's always a good idea to take a closer look at the CloudFormation event log. Sometimes, there may be more details available in the log messages that could provide a hint about the issue.

Even if the Cognito UserPool itself hasn't changed, other resources that are dependent on it or related to it may have changed, causing the error. For example, if you have a Lambda trigger associated with the UserPool and Lambda has some changes, it might lead to a failure in updating the UserPool.

AWS CloudFormation provides a feature called Drift Detection. This allows you to detect whether the actual AWS resources have drifted from the expected configuration. You can run a drift detection on your stack and see if there's any drift detected for your Cognito UserPool or related resources.

Ensure that the IAM Role you're using with CloudFormation has the necessary permissions to update and manage Cognito UserPools. It's possible that permissions have changed or been reduced since your last successful update.

Best regards, Andrii

profile picture
專家
已回答 8 個月前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南