Skip to content

Modernize serverless-sharp #121

Description

@bs-thomas

I have pulled your latest "modernize" branch, which you're trying to upgrade to the latest serverless-sharp, and a number of other tweaks.

I tried deploying, but stuck with some error messages in serverless.yml.
May I ask if this is still a WIP branch?

There are also a number of things I noticed:

  1. serverless deprecates the usage of settings.yml, and promotes usage of env files. Would you considering going for the latter option? I can assist maybe if you're ok?

  2. I see there is some Makefile and stuff. But the sharp layer for Lambda doesn't really require any building I think.
    All I did on my end is:

  • Add a package.json in the directory "\lambdaLayers\SharpLayer\nodejs" with dependency "sharp": "^0.30.6"
  • Go to the directory, and type in the command npm install --platform=linux --arch=x64 sharp
  • Then, all the linux x64 binaries will be there, and you just deploy over and it works for me.

Or did I miss anything here?

  1. Switched over to use TS. Actually I have no experience on this part. Is it really better?

  2. TLSv1 <-- still uses this protocol. AWS seems to already recommend 'TLSv1.2_2021'

=====

Btw, @Mosnar any communication tools you use? I think we can exchange contacts, it can make our communication easier, and also to make a new overseas friend ;-) If you're interested of course.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions