Skip to content

Commit 9fda47c

Browse files
hanwen-clustergmarciani
authored andcommitted
Reapply "Upgrade Lambda Runtime for Pcluster Lambda Layer"
This reverts commit 3e9f933. Signed-off-by: Hanwen <[email protected]>
1 parent 77f3408 commit 9fda47c

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
CHANGELOG
22
=========
33

4+
3.12.0
5+
------
6+
7+
**CHANGES**
8+
- Upgrade Python to version 3.12 and NodeJS to version 18 in ParallelCluster Lambda Layer.
9+
410
3.11.1
511
------
612

api/infrastructure/parallelcluster-api.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Resources:
200200
- parallelcluster/${Version}/layers/aws-parallelcluster/lambda-layer.zip
201201
- { Version: !FindInMap [ParallelCluster, Constants, Version]}
202202
CompatibleRuntimes:
203-
- python3.9
203+
- python3.12
204204

205205
# We need to define three AWS::Serverless::Api due to an issue with the handling of AWS::NoValue
206206
# See related GitHub issue: https://github.com/aws/serverless-application-model/issues/1435
@@ -294,7 +294,7 @@ Resources:
294294
Value: api
295295
- Key: 'parallelcluster:version'
296296
Value: !FindInMap [ParallelCluster, Constants, Version]
297-
Runtime: python3.9
297+
Runtime: python3.12
298298
Handler: pcluster.api.awslambda.entrypoint.lambda_handler
299299
Layers:
300300
- !Ref PclusterLayer

cloudformation/custom_resource/cluster.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Resources:
4545
- parallelcluster/${Version}/layers/aws-parallelcluster/lambda-layer.zip
4646
- { Version: !FindInMap [ParallelCluster, Constants, Version] }
4747
CompatibleRuntimes:
48-
- python3.9
48+
- python3.12
4949

5050
PclusterPolicies:
5151
Condition: UsePCPolicies
@@ -341,7 +341,7 @@ Resources:
341341
helper(event, context)
342342
343343
Handler: index.handler
344-
Runtime: python3.9
344+
Runtime: python3.12
345345
Role: !If [CustomRoleCondition, !Ref CustomLambdaRole, !GetAtt PclusterLambdaRole.Arn]
346346
Layers:
347347
- !Ref PclusterLayer
@@ -395,7 +395,7 @@ Resources:
395395
reason = str(e)
396396
cfnresponse.send(event, context, response_status, {}, event.get('PhysicalResourceId', 'CleanupS3bucketCustomResource'), reason)
397397
Handler: index.handler
398-
Runtime: python3.9
398+
Runtime: python3.12
399399
Role: !If [CustomRoleCondition, !Ref CustomLambdaRole, !GetAtt PclusterLambdaRole.Arn]
400400

401401
CleanupS3bucketCustomResource:

tests/integration-tests/conftest_resource_bucket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from tests.common.utils import get_installed_parallelcluster_version
3131

3232
logger = logging.getLogger()
33-
NODE_VERSION = "v16.19.0" # maintenance version compatible with alinux2's GLIBC
33+
NODE_VERSION = "v18.20.3"
3434

3535

3636
def install_pc(basepath, pc_version):

0 commit comments

Comments
 (0)