aws-solutions / secure-media-delivery-at-the-edge-on-aws

Apache License 2.0
20 stars 10 forks source link

The runtime parameter of nodejs12.x is no longer supported for creating or updating AWS Lambda functions #7

Closed cornelcroi closed 1 year ago

cornelcroi commented 1 year ago

Describe the bug The code uses custom_resources.AwsCustomResourcewhich uses an old runtime for the Lambda function.

To Reproduce Deploy the application using CDK or CFN template.

Expected behavior Impossible to deploy the application as nodejs12 runtime is not supported anymore.

Please complete the following information about the solution: An issue on CDK is open: https://github.com/aws/aws-cdk/issues/23682, not solved yet.

To get the version of the solution, you can look at the description of the created CloudFormation stack. For example, "(SO0021) - Video On Demand workflow with AWS Step Functions, MediaConvert, MediaPackage, S3, CloudFront and DynamoDB. Version v5.0.0". If the description does not contain the version information, you can look at the mappings section of the template:

Mappings:
  SourceCode:
    General:
      S3Bucket: "solutions"
      KeyPrefix: "video-on-demand-on-aws/v5.0.0"

Screenshots If applicable, add screenshots to help explain your problem (please DO NOT include sensitive information).

Additional context Add any other context about the problem here.

kaizencc commented 1 year ago

The current aws-cdk-lib custom resource uses Node 14. Your solution is to update aws-cdk-lib to the latest version.

cassneal commented 1 year ago

We are updating this today. Will comment here once we have released.

cassneal commented 1 year ago

Secure Media Delivery at the Edge on AWS 1.1.4 has been released and includes the update to aws-cdk-lib to the latest version.