Skip to content

Commit

Permalink
Reapply "Upgrade Lambda Runtime for Pcluster Lambda Layer"
Browse files Browse the repository at this point in the history
This reverts commit 3e9f933.

Signed-off-by: Hanwen <[email protected]>
  • Loading branch information
hanwen-cluster authored and hanwen-pcluste committed Oct 9, 2024
1 parent e1373e1 commit 1962438
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
CHANGELOG
=========

3.12.0
------

**CHANGES**
- Upgrade Python to version 3.12 and NodeJS to version 18 in ParallelCluster Lambda Layer.

3.11.0
------

Expand Down
4 changes: 2 additions & 2 deletions api/infrastructure/parallelcluster-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Resources:
- parallelcluster/${Version}/layers/aws-parallelcluster/lambda-layer.zip
- { Version: !FindInMap [ParallelCluster, Constants, Version]}
CompatibleRuntimes:
- python3.9
- python3.12

# We need to define three AWS::Serverless::Api due to an issue with the handling of AWS::NoValue
# See related GitHub issue: https://github.com/aws/serverless-application-model/issues/1435
Expand Down Expand Up @@ -294,7 +294,7 @@ Resources:
Value: api
- Key: 'parallelcluster:version'
Value: !FindInMap [ParallelCluster, Constants, Version]
Runtime: python3.9
Runtime: python3.12
Handler: pcluster.api.awslambda.entrypoint.lambda_handler
Layers:
- !Ref PclusterLayer
Expand Down
6 changes: 3 additions & 3 deletions cloudformation/custom_resource/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Resources:
- parallelcluster/${Version}/layers/aws-parallelcluster/lambda-layer.zip
- { Version: !FindInMap [ParallelCluster, Constants, Version] }
CompatibleRuntimes:
- python3.9
- python3.12

PclusterPolicies:
Condition: UsePCPolicies
Expand Down Expand Up @@ -341,7 +341,7 @@ Resources:
helper(event, context)
Handler: index.handler
Runtime: python3.9
Runtime: python3.12
Role: !If [CustomRoleCondition, !Ref CustomLambdaRole, !GetAtt PclusterLambdaRole.Arn]
Layers:
- !Ref PclusterLayer
Expand Down Expand Up @@ -395,7 +395,7 @@ Resources:
reason = str(e)
cfnresponse.send(event, context, response_status, {}, event.get('PhysicalResourceId', 'CleanupS3bucketCustomResource'), reason)
Handler: index.handler
Runtime: python3.9
Runtime: python3.12
Role: !If [CustomRoleCondition, !Ref CustomLambdaRole, !GetAtt PclusterLambdaRole.Arn]

CleanupS3bucketCustomResource:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration-tests/conftest_resource_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from tests.common.utils import get_installed_parallelcluster_version

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


def install_pc(basepath, pc_version):
Expand Down

0 comments on commit 1962438

Please sign in to comment.