Skip to content

Commit bd77732

Browse files
committed
Default runtime to python3.6
1 parent d01ec61 commit bd77732

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎aws_lambda/aws_lambda.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def create_function(cfg, path_to_zip_file, extra_config=None):
203203

204204
lambda_create_config = {
205205
'FunctionName': func_name,
206-
'Runtime': cfg.get('runtime', 'python2.7'),
206+
'Runtime': cfg.get('runtime', 'python3.6'),
207207
'Role': role,
208208
'Handler': cfg.get('handler'),
209209
'Code': {'ZipFile': byte_stream},
@@ -253,7 +253,7 @@ def update_function(cfg, path_to_zip_file, extra_config=None):
253253
'Description': cfg.get('description'),
254254
'Timeout': cfg.get('timeout', 15),
255255
'MemorySize': cfg.get('memory_size', 512),
256-
'Runtime': cfg.get('runtime', 'python2.7'),
256+
'Runtime': cfg.get('runtime', 'python3.6'),
257257
'VpcConfig': {
258258
'SubnetIds': cfg.get('subnet_ids', []),
259259
'SecurityGroupIds': cfg.get('security_group_ids', [])

0 commit comments

Comments
 (0)