Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-3.8] Use older versions of jsonschema and urllib3 for Lambda Layer #5874

Closed
wants to merge 1 commit into from

Commits on Nov 22, 2023

  1. Use older versions of jsonschema and urllib3 for Lambda Layer

    Pcluster API execution fails if using the latest version of the packages.
    
    * jsonschema introduced breaking changes in 4.18.0 in July 2023. Therefore, we use version 4.17.3. aws/aws-cdk#26300
    * urllib released 2.0 in May 2023. Pcluster API has been released with urllib 1.x. Therefore, we use version 1.x.
    
    The root cause of both issues are because Lambda Function environment has older boto3/botocore versions than latest released versions on PyPi.
    Specifically, when we prepare lambda layers, the dependencies are installed according to new boto3/botocore versions. When running the Lambda function, the older boto3/botocore are not compatible with the dependencies we provide in Lambda layers.
    
    Signed-off-by: Hanwen <[email protected]>
    hanwen-pcluste committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    eb87266 View commit details
    Browse the repository at this point in the history