mirror of https://github.com/docker/docs.git
release: increase timeout for creating lambda from 3s to 10s
We've seen instances where the publishing workflow has recently started failing when trying to update the CloudFront config (create lambda function). Re-running the workflow usually fixes the problem. The default timeout for creating a lambda function is 3 seconds. Bumping the limit to 10s might help resolve this issue. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
d444610c66
commit
98987a64c3
|
@ -129,6 +129,7 @@ func (s *AwsCloudfrontUpdateCmd) Run() error {
|
|||
}
|
||||
_, err = svc.CreateFunction(&lambda.CreateFunctionInput{
|
||||
FunctionName: aws.String(s.Function),
|
||||
Timeout: aws.Int64(10),
|
||||
})
|
||||
if aerr, ok := err.(awserr.Error); ok && aerr.Code() != lambda.ErrCodeResourceConflictException {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue