Merge pull request #20650 from dvdksn/revert-98987a6

revert 98987a6
This commit is contained in:
David Karlsson 2024-08-19 16:36:01 +02:00 committed by GitHub
commit 73f137e77b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -129,7 +129,6 @@ 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
@ -154,8 +153,8 @@ func (s *AwsCloudfrontUpdateCmd) Run() error {
log.Printf("INFO: waiting for lambda function to be processed\n")
// the lambda function code image is never ready right away, AWS has to
// process it, so we wait 3 seconds before trying to publish the version.
time.Sleep(3 * time.Second)
// process it, so we wait 8 seconds before trying to publish the version.
time.Sleep(8 * time.Second)
publishConfig, err := svc.PublishVersion(&lambda.PublishVersionInput{
FunctionName: aws.String(s.Function),