cdk-remote-stack icon indicating copy to clipboard operation
cdk-remote-stack copied to clipboard

fix: timeout error

Open paihu opened this issue 2 years ago • 2 comments

The default timeout of 3 seconds for the Lambda function is too short. I propose we change it to 15 minutes.

paihu avatar Jan 01 '24 07:01 paihu

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.

nabe1653 avatar Mar 25 '24 08:03 nabe1653

Facing the same timeout error too but I think 1 to 3 mins would be enough

tochny avatar Apr 04 '24 12:04 tochny

Not sure if we should expose that to the construct props but let's make it 3min timeout for now.

pahud avatar Jul 18 '24 11:07 pahud

close in favor of https://github.com/pahud/cdk-remote-stack/pull/604

pahud avatar Jul 18 '24 15:07 pahud