aws-amplify / amplify-cli

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
Apache License 2.0
2.82k stars 820 forks source link

support net.core3.1 layer with amplify #10790

Open PopMal opened 2 years ago

PopMal commented 2 years ago

Hello. There are several lambda features on net.core 3.1 without layers. All this business is implemented through amplify cli. At the moment, there is a need to add layers for these lambdas, but amplify only offers python or nodejs. From what I've tried, I've deployed the layer through Amazon.Lambda.Tools, then I inserted the layer explicitly into the cloudformation, spelling out the layer's arn. But this trick attaches a layer to the function, but the size of the lambda does not decrease, that is, it does not work) Question is it possible to add net.core 3.1 layers for lambdas via amplify? Or change the generated cloudformation files to apply layers for lambdas?

josefaidt commented 2 years ago

Hey @PopMal :wave: thanks for raising this! We can add a specific layer by its ARN through the amplify update function workflow, which will allow the layer to persist across amplify update function executions.

Although the CLI does not currently support this runtime for Lambda Layers, I will mark this as a feature request for the team to evaluate further 🙂