Cloudformation - Lambda did not stabilise

0

Hello,

I am facing an issue where my cloudformation is failing to update my Lambda function, showing an error:

Resource handler returned message: "Resource of type 'AWS::Lambda::Function' with identifier '...' did not stabilize." (RequestToken: 520189e2-99cf-5407-db18-9f1cca71dc37, HandlerErrorCode: NotStabilized)

The final error looks to be very similar to this post by Keith, but unlike what Keith mentioned, my Lambda's image is only 1.26GB in size, so that should not trigger the SizeLimitExceeded problem. When I go to the Lambda function, I see the error below instead. I also tried granting ECR Full Access to the Lambda Role, but that did not help too.

Failed to restore the function ...: The function does not have permission to access the specified image.

What is weird for me is that the cloudformation worked via the same CI/CD process during a deployment made few weeks ago. I also have a few "duplicated cloudformations" serving different environments, and out of them one managed to deploy successfully with the same set of codes.

Appreciate if anyone else has some thoughts to share about this, thanks!

  • Could you share the function execution role assigned?

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions