fix: timeout error
The default timeout of 3 seconds for the Lambda function is too short. I propose we change it to 15 minutes.
I faced timeout error too in some of my environments ... those enviroment uses same stacks and region but only some envs failed due to timeout error.
I tried to run sometimes and try with --method=prepare-change-set option but not resolved ... so I changed npm_package js code as same as this MR:
handler: 'remote-outputs.on_event',
+ timeout: aws_cdk_lib_1.Duration.minutes(3),
/* ... */
handler: 'remote-parameters.on_event',
+ timeout: aws_cdk_lib_1.Duration.minutes(3),
});
I feel 15min is too long but this worked. (I checked lambda log after success, it takes 3.19sec for the env) I wish merge this or add some args/env-value to choose Duration.
Facing the same timeout error too but I think 1 to 3 mins would be enough
Not sure if we should expose that to the construct props but let's make it 3min timeout for now.
close in favor of https://github.com/pahud/cdk-remote-stack/pull/604