Open CrazyCatMandy opened 2 years ago
Have done some of my own debugging on this and it seems that setting the polling_interval=1 at the start of the start_cdk_deploy lambda can cause issues with crhelper. This is because the standard crhelper code using minutes (pleural) in the regular expression and for the value to be 1 it would have to use minute (singular). Not found a version of crhelper code that deals with that situation as yet.
@CrazyCatMandy - Have you raise an issue on https://github.com/aws-cloudformation/custom-resource-helper/issues ? Where in the crhelper source code is the regex?
Please ensure you are using the latest version and have tried to run a validate command on your source files
Steps to reproduce
Expected results
Lambda should run to completion
Actual results
Comments
This looks to be complaining about the helper code. I am using crhelper-2.0.5.dist-info. In this the PutRule operation on the Parameter ScheduleExpression seems to point to a self._polling_interval that is originally set at the top of the code resource_helper.py to be 2.
Is this an issue with the crhelper lambda layer version or something else? Would help if the lambda application for the account cdk bootstrapping code included the crhelper elements that it needed to avoid such issues.
Thanks