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:
David Karlsson 2024-08-15 08:29:44 +02:00
parent d444610c66
commit 98987a64c3
1 changed files with 1 additions and 0 deletions

View File

@ -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