Skip to content
This repository was archived by the owner on Oct 22, 2022. It is now read-only.
This repository was archived by the owner on Oct 22, 2022. It is now read-only.

Default Node v4.3 End-of-Life'ed #107

@adamneilson

Description

@adamneilson

I understand from the README that io.nervous/lein-cljs-lambda 0.6.0 defaults the runtime of deployed functions to nodejs4.3. However, I received the following message from AWS

Your AWS Account currently has one or more Lambda functions configured to use the Node.js v4.3 runtime. The Node Foundation declared End-of-Life (EOL) for Node.js v4 on April 30, 2018. As a result, this version of Node.js is no longer receiving bug fixes, security updates, or performance improvements from the Node Foundation. Per the AWS Lambda runtime support policy [2] , language runtimes that have been end-of-lifed by the supplier are deprecated in AWS Lambda. While invocations of Lambda functions configured to use Node.js v4.3 will continue to work normally, the ability to create new Lambda functions configured to use the Node.js v4.3 runtime will be disabled on July 31, 2018. Code updates to existing functions using Node.js v4.3 will be disabled on October 31, 2018. We strongly encourage you to update all your functions to a newer version of Node.js (v6.10 or v8.10) so that you continue to benefit from important security, performance, and functionality enhancements offered by the Node Foundation via more recent releases.

The README states this can be overriden with :runtime in the fn-spec or on the command-line. Does this mean something like this in the project.clj?

  :cljs-lambda
  {:defaults      {:role "FIXME"}
   :resource-dirs ["static"]
   :functions
   [{:name   "work-magic"
     :runtime  "nodejs8.10"
     :invoke example.core/work-magic}]}

If not, can anyone give me some guidance?

Given that functions using Node 4.3 will be disabled by the end of October, it might be prudent to default to a newer version of Node and let people set the :runtime back to v4.3 if they really need it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions