@@ -139,9 +139,9 @@ def deploy_s3(
139
139
use_s3 = True
140
140
s3_file = upload_s3 (cfg , path_to_zip_file , use_s3 )
141
141
if function_exists (cfg , cfg .get ('function_name' )):
142
- update_function (cfg , path_to_zip_file , use_s3 , s3_file )
142
+ update_function (cfg , path_to_zip_file , use_s3 = use_s3 , s3_file = s3_file )
143
143
else :
144
- create_function (cfg , path_to_zip_file , use_s3 , s3_file )
144
+ create_function (cfg , path_to_zip_file , use_s3 = use_s3 , s3_file = s3_file )
145
145
146
146
147
147
def upload (
@@ -459,7 +459,7 @@ def get_client(client, aws_access_key_id, aws_secret_access_key, region=None):
459
459
)
460
460
461
461
462
- def create_function (cfg , path_to_zip_file , * use_s3 , ** s3_file ):
462
+ def create_function (cfg , path_to_zip_file , use_s3 = False , s3_file = None ):
463
463
"""Register and upload a function to AWS Lambda."""
464
464
465
465
print ('Creating your new Lambda function' )
@@ -531,7 +531,7 @@ def create_function(cfg, path_to_zip_file, *use_s3, **s3_file):
531
531
client .create_function (** kwargs )
532
532
533
533
534
- def update_function (cfg , path_to_zip_file , * use_s3 , ** s3_file ):
534
+ def update_function (cfg , path_to_zip_file , use_s3 = False , s3_file = None ):
535
535
"""Updates the code of an existing Lambda function"""
536
536
537
537
print ('Updating your Lambda function' )
0 commit comments