Handler takes a long time to complete...?
See original GitHub issueHi
I have created a resource in Java and successfully implemented it and it is working. However just to give more context, my custom resource creates a cloudhsm cluster and in the create handler I implement logic to wait for the cluster to be created using callback context as per documentation. But what I experience is that the Cloudformation resource takes a long time before it reaches the complete state. Attached is a cloudwatch log when the create has finished:
Notice the last line where the actual resource has been signalled as completed around 22:21 almost 10 minutes after the 22:12… Why does it writes out twice:
Record handler progress
And why does it take so long time for the second line to be written?. I can see that my resource is stuck in progress state until the second line has been written in cloudwatch logs.
The actual cloudhsm cluster only takes 4-6 minutes to complete. So what is it waiting for even when my code has returned success state once the cloudhsm cluster has been created?
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (7 by maintainers)
After looking at the stack, it looks like the delay is caused by our backoff when polling the status of the resource. The length of the backoff is a bug on CloudFormation’s side that is currently being addressed
Fix should be deployed out. Going to close this out. If you still see the issue feel free to reopen!