Skip to content

Commit 60f744d

Browse files
hanwen-clusterHimani Anil Deshpande
andcommitted
Upgrade Lambda runtime from Python 3.9 to Python 3.12
Co-authored-by: Himani Anil Deshpande <himanidp@amazon.com>
1 parent 91442e2 commit 60f744d

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CHANGELOG
77
**CHANGES**
88
- Ubuntu 20.04 is no longer supported.
99
- Support DCV on Amazon Linux 2023.
10+
- Upgrade Python runtime used by Lambda functions to python3.12 (from python3.9).
1011
- Remove `berkshelf`. All cookbooks are local and do not need `berkshelf` dependency management.
1112

1213
**BUG FIXES**

cli/src/pcluster/templates/cdk_builder_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ def __init__(
10871087
handler=f"{handler_func}.handler",
10881088
memory_size=128,
10891089
role=execution_role,
1090-
runtime="python3.9",
1090+
runtime="python3.12",
10911091
timeout=timeout,
10921092
vpc_config=(
10931093
awslambda.CfnFunction.VpcConfigProperty(

cli/src/pcluster/templates/imagebuilder_stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ def _add_lambda_cleanup(self, policy_statements, build_tags):
783783
handler="delete_image_stack.handler",
784784
memory_size=128,
785785
role=execution_role,
786-
runtime="python3.9",
786+
runtime="python3.12",
787787
timeout=900,
788788
environment=lambda_env,
789789
tags=build_tags,

cloudformation/ad/ad-integration.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ Resources:
241241
Handler: index.handler
242242
MemorySize: 128
243243
Role: !GetAtt PrepRole.Arn
244-
Runtime: python3.9
244+
Runtime: python3.12
245245
Timeout: 300
246246
TracingConfig:
247247
Mode: Active
@@ -560,7 +560,7 @@ Resources:
560560
Handler: index.handler
561561
MemorySize: 128
562562
Role: !GetAtt PostRole.Arn
563-
Runtime: python3.9
563+
Runtime: python3.12
564564
Timeout: 300
565565
TracingConfig:
566566
Mode: Active
@@ -767,7 +767,7 @@ Resources:
767767
Handler: index.handler
768768
MemorySize: 128
769769
Role: !GetAtt DomainCertificateSetupLambdaRole.Arn
770-
Runtime: python3.9
770+
Runtime: python3.12
771771
Timeout: 300
772772
TracingConfig:
773773
Mode: Active
@@ -879,7 +879,7 @@ Resources:
879879
Handler: index.handler
880880
MemorySize: 128
881881
Role: !GetAtt CleanupLambdaRole.Arn
882-
Runtime: python3.9
882+
Runtime: python3.12
883883
Timeout: 900
884884
TracingConfig:
885885
Mode: Active

cloudformation/storage/storage-stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ Resources:
394394
Handler: index.handler
395395
MemorySize: 128
396396
Role: !GetAtt FileCacheLambdaRole.Arn
397-
Runtime: python3.9
397+
Runtime: python3.12
398398
Timeout: 300
399399
TracingConfig:
400400
Mode: Active

tests/integration-tests/resources/file-cache-storage-cfn.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Resources:
4444
Handler: index.handler
4545
MemorySize: 128
4646
Role: !GetAtt FileCacheLambdaRole.Arn
47-
Runtime: python3.9
47+
Runtime: python3.12
4848
Timeout: 300
4949
TracingConfig:
5050
Mode: Active

0 commit comments

Comments
 (0)