Skip to content

Commit 7fde576

Browse files
committed
upgrade all lambda python versions to 3.9
1 parent 4549886 commit 7fde576

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

server/nested_templates/bootstrap/lambdafunctions.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Resources:
135135
Properties:
136136
CodeUri: ../../Resources/
137137
Handler: shared_service_authorizer.lambda_handler
138-
Runtime: python3.8
138+
Runtime: python3.9
139139
Role: !GetAtt AuthorizerExecutionRole.Arn
140140
MemorySize: 256
141141
Tracing: Active
@@ -153,7 +153,7 @@ Resources:
153153
Properties:
154154
CodeUri: ../../Resources/
155155
Handler: tenant_authorizer.lambda_handler
156-
Runtime: python3.8
156+
Runtime: python3.9
157157
Role: !GetAtt AuthorizerExecutionRole.Arn
158158
MemorySize: 256
159159
Tracing: Active
@@ -246,7 +246,7 @@ Resources:
246246
Properties:
247247
CodeUri: ../../TenantManagementService/
248248
Handler: user-management.create_tenant_admin_user
249-
Runtime: python3.8
249+
Runtime: python3.9
250250
Role: !GetAtt CreateUserLambdaExecutionRole.Arn
251251
Tracing: Active
252252
Layers:
@@ -289,7 +289,7 @@ Resources:
289289
Properties:
290290
CodeUri: ../../TenantManagementService/
291291
Handler: user-management.create_user
292-
Runtime: python3.8
292+
Runtime: python3.9
293293
Role: !GetAtt CreateUserLambdaExecutionRole.Arn
294294
Tracing: Active
295295
Layers:
@@ -328,7 +328,7 @@ Resources:
328328
Properties:
329329
CodeUri: ../../TenantManagementService/
330330
Handler: user-management.update_user
331-
Runtime: python3.8
331+
Runtime: python3.9
332332
Role: !GetAtt TenantUserPoolLambdaExecutionRole.Arn
333333
Tracing: Active
334334
Layers:
@@ -367,7 +367,7 @@ Resources:
367367
Properties:
368368
CodeUri: ../../TenantManagementService/
369369
Handler: user-management.disable_user
370-
Runtime: python3.8
370+
Runtime: python3.9
371371
Role: !GetAtt TenantUserPoolLambdaExecutionRole.Arn
372372
Tracing: Active
373373
Layers:
@@ -405,7 +405,7 @@ Resources:
405405
Properties:
406406
CodeUri: ../../TenantManagementService/
407407
Handler: user-management.disable_users_by_tenant
408-
Runtime: python3.8
408+
Runtime: python3.9
409409
Role: !GetAtt TenantUserPoolLambdaExecutionRole.Arn
410410
Tracing: Active
411411
Layers:
@@ -443,7 +443,7 @@ Resources:
443443
Properties:
444444
CodeUri: ../../TenantManagementService/
445445
Handler: user-management.enable_users_by_tenant
446-
Runtime: python3.8
446+
Runtime: python3.9
447447
Role: !GetAtt TenantUserPoolLambdaExecutionRole.Arn
448448
Tracing: Active
449449
Layers:
@@ -481,7 +481,7 @@ Resources:
481481
Properties:
482482
CodeUri: ../../TenantManagementService/
483483
Handler: user-management.get_user
484-
Runtime: python3.8
484+
Runtime: python3.9
485485
Role: !GetAtt TenantUserPoolLambdaExecutionRole.Arn
486486
Tracing: Active
487487
Layers:
@@ -519,7 +519,7 @@ Resources:
519519
Properties:
520520
CodeUri: ../../TenantManagementService/
521521
Handler: user-management.get_users
522-
Runtime: python3.8
522+
Runtime: python3.9
523523
Role: !GetAtt TenantUserPoolLambdaExecutionRole.Arn
524524
Tracing: Active
525525
Layers:
@@ -597,7 +597,7 @@ Resources:
597597
Properties:
598598
CodeUri: ../../TenantManagementService/
599599
Handler: tenant-management.create_tenant
600-
Runtime: python3.8
600+
Runtime: python3.9
601601
Role: !GetAtt TenantManagementLambdaExecutionRole.Arn
602602
Tracing: Active
603603
Layers:
@@ -635,7 +635,7 @@ Resources:
635635
Properties:
636636
CodeUri: ../../TenantManagementService/
637637
Handler: tenant-management.activate_tenant
638-
Runtime: python3.8
638+
Runtime: python3.9
639639
Role: !GetAtt TenantManagementLambdaExecutionRole.Arn
640640
Tracing: Active
641641
Layers:
@@ -675,7 +675,7 @@ Resources:
675675
Properties:
676676
CodeUri: ../../TenantManagementService/
677677
Handler: tenant-management.get_tenant
678-
Runtime: python3.8
678+
Runtime: python3.9
679679
Role: !GetAtt TenantManagementLambdaExecutionRole.Arn
680680
Tracing: Active
681681
Layers:
@@ -713,7 +713,7 @@ Resources:
713713
Properties:
714714
CodeUri: ../../TenantManagementService/
715715
Handler: tenant-management.deactivate_tenant
716-
Runtime: python3.8
716+
Runtime: python3.9
717717
Role: !GetAtt TenantManagementLambdaExecutionRole.Arn
718718
Tracing: Active
719719
Layers:
@@ -753,7 +753,7 @@ Resources:
753753
Properties:
754754
CodeUri: ../../TenantManagementService/
755755
Handler: tenant-management.update_tenant
756-
Runtime: python3.8
756+
Runtime: python3.9
757757
Role: !GetAtt TenantManagementLambdaExecutionRole.Arn
758758
Tracing: Active
759759
Layers:
@@ -795,7 +795,7 @@ Resources:
795795
Properties:
796796
CodeUri: ../../TenantManagementService/
797797
Handler: tenant-management.get_tenants
798-
Runtime: python3.8
798+
Runtime: python3.9
799799
Role: !GetAtt TenantManagementLambdaExecutionRole.Arn
800800
Tracing: Active
801801
Layers:
@@ -832,7 +832,7 @@ Resources:
832832
Properties:
833833
CodeUri: ../../TenantManagementService/
834834
Handler: tenant-management.load_tenant_config
835-
Runtime: python3.8
835+
Runtime: python3.9
836836
Role: !GetAtt TenantManagementLambdaExecutionRole.Arn
837837
Tracing: Active
838838
Layers:
@@ -887,7 +887,7 @@ Resources:
887887
Properties:
888888
CodeUri: ../../TenantManagementService/
889889
Handler: tenant-registration.register_tenant
890-
Runtime: python3.8
890+
Runtime: python3.9
891891
Role: !GetAtt RegisterTenantLambdaExecutionRole.Arn
892892
Tracing: Active
893893
Layers:
@@ -972,7 +972,7 @@ Resources:
972972
Properties:
973973
CodeUri: ../../TenantManagementService/
974974
Handler: tenant-provisioning.provision_tenant
975-
Runtime: python3.8
975+
Runtime: python3.9
976976
Role: !GetAtt ProvisionTenantLambdaExecutionRole.Arn
977977
Tracing: Active
978978
Layers:
@@ -1038,7 +1038,7 @@ Resources:
10381038
Properties:
10391039
CodeUri: ../../TenantManagementService/
10401040
Handler: tenant-provisioning.deprovision_tenant
1041-
Runtime: python3.8
1041+
Runtime: python3.9
10421042
Role: !GetAtt DeProvisionTenantLambdaExecutionRole.Arn
10431043
Tracing: Active
10441044
Layers:
@@ -1103,7 +1103,7 @@ Resources:
11031103
Properties:
11041104
CodeUri: ../../custom_resources/
11051105
Handler: update_settings_table.handler
1106-
Runtime: python3.8
1106+
Runtime: python3.9
11071107
Role: !GetAtt UpdateSettingsTableLambdaExecutionRole.Arn
11081108
Layers:
11091109
- !Ref ServerlessSaaSLayers
@@ -1140,7 +1140,7 @@ Resources:
11401140
Properties:
11411141
CodeUri: ../../custom_resources/
11421142
Handler: update_tenantstackmap_table.handler
1143-
Runtime: python3.8
1143+
Runtime: python3.9
11441144
Role: !GetAtt UpdateTenantStackMapTableLambdaExecutionRole.Arn
11451145
Layers:
11461146
- !Ref ServerlessSaaSLayers

server/tenant-template.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Resources:
147147
Properties:
148148
CodeUri: ProductService/
149149
Handler: product_service.get_product
150-
Runtime: python3.8
150+
Runtime: python3.9
151151
Tracing: Active
152152
Role: !GetAtt ProductFunctionExecutionRole.Arn
153153
ReservedConcurrentExecutions: !If [IsPooledDeploy, !Ref "AWS::NoValue" , !Ref LambdaReserveConcurrency]
@@ -191,7 +191,7 @@ Resources:
191191
Properties:
192192
CodeUri: ProductService/
193193
Handler: product_service.get_products
194-
Runtime: python3.8
194+
Runtime: python3.9
195195
Tracing: Active
196196
Role: !GetAtt ProductFunctionExecutionRole.Arn
197197
ReservedConcurrentExecutions: !If [IsPooledDeploy, !Ref "AWS::NoValue" , !Ref LambdaReserveConcurrency]
@@ -235,7 +235,7 @@ Resources:
235235
Properties:
236236
CodeUri: ProductService/
237237
Handler: product_service.create_product
238-
Runtime: python3.8
238+
Runtime: python3.9
239239
Tracing: Active
240240
Role: !GetAtt ProductFunctionExecutionRole.Arn
241241
Layers:
@@ -278,7 +278,7 @@ Resources:
278278
Properties:
279279
CodeUri: ProductService/
280280
Handler: product_service.update_product
281-
Runtime: python3.8
281+
Runtime: python3.9
282282
Tracing: Active
283283
Role: !GetAtt ProductFunctionExecutionRole.Arn
284284
Layers:
@@ -321,7 +321,7 @@ Resources:
321321
Properties:
322322
CodeUri: ProductService/
323323
Handler: product_service.delete_product
324-
Runtime: python3.8
324+
Runtime: python3.9
325325
Tracing: Active
326326
Role: !GetAtt ProductFunctionExecutionRole.Arn
327327
Layers:
@@ -402,7 +402,7 @@ Resources:
402402
Properties:
403403
CodeUri: OrderService/
404404
Handler: order_service.get_orders
405-
Runtime: python3.8
405+
Runtime: python3.9
406406
Tracing: Active
407407
Role: !GetAtt OrderFunctionExecutionRole.Arn
408408
ReservedConcurrentExecutions: !If [IsPooledDeploy, !Ref "AWS::NoValue" , !Ref LambdaReserveConcurrency]
@@ -446,7 +446,7 @@ Resources:
446446
Properties:
447447
CodeUri: OrderService/
448448
Handler: order_service.get_order
449-
Runtime: python3.8
449+
Runtime: python3.9
450450
Tracing: Active
451451
Role: !GetAtt OrderFunctionExecutionRole.Arn
452452
ReservedConcurrentExecutions: !If [IsPooledDeploy, !Ref "AWS::NoValue" , !Ref LambdaReserveConcurrency]
@@ -490,7 +490,7 @@ Resources:
490490
Properties:
491491
CodeUri: OrderService/
492492
Handler: order_service.create_order
493-
Runtime: python3.8
493+
Runtime: python3.9
494494
Tracing: Active
495495
Role: !GetAtt OrderFunctionExecutionRole.Arn
496496
Layers:
@@ -533,7 +533,7 @@ Resources:
533533
Properties:
534534
CodeUri: OrderService/
535535
Handler: order_service.update_order
536-
Runtime: python3.8
536+
Runtime: python3.9
537537
Tracing: Active
538538
Role: !GetAtt OrderFunctionExecutionRole.Arn
539539
Layers:
@@ -576,7 +576,7 @@ Resources:
576576
Properties:
577577
CodeUri: OrderService/
578578
Handler: order_service.delete_order
579-
Runtime: python3.8
579+
Runtime: python3.9
580580
Tracing: Active
581581
Role: !GetAtt OrderFunctionExecutionRole.Arn
582582
Layers:
@@ -1254,7 +1254,7 @@ Resources:
12541254
Properties:
12551255
CodeUri: custom_resources/
12561256
Handler: update_usage_plan.handler
1257-
Runtime: python3.8
1257+
Runtime: python3.9
12581258
Role: !GetAtt UpdateUsagePlanLambdaExecutionRole.Arn
12591259
Layers:
12601260
- !Ref ServerlessSaaSLayers
@@ -1309,7 +1309,7 @@ Resources:
13091309
Properties:
13101310
CodeUri: custom_resources/
13111311
Handler: update_tenant_apigatewayurl.handler
1312-
Runtime: python3.8
1312+
Runtime: python3.9
13131313
Role: !GetAtt UpdateTenantApiGatewayUrlLambdaExecutionRole.Arn
13141314
Layers:
13151315
- !Ref ServerlessSaaSLayers

0 commit comments

Comments
 (0)