aws-lambda-dotnet icon indicating copy to clipboard operation
aws-lambda-dotnet copied to clipboard

AWS Layers and Powershell?

Open JustinGrote opened this issue 6 years ago • 7 comments

In relation to #319, and the announcement of AWS Layers, is this a potential option to make this simpler? Could the .NET Core Runtime be packaged as a layer, so that the actual Powershell script is far more lightweight and easier to iterate/test? That would be huge, uploading a 22MB file every revision is a major stop gap to rapid development compared to Azure Functions or Azure Automation.

Is there any potential guidance around this?

JustinGrote avatar Feb 06 '19 23:02 JustinGrote

Hi @JustinGrote, thank you for your interest in this! Consider participating in this discussion about using .NET Core with Layers: https://github.com/aws/aws-extensions-for-dotnet-cli/issues/58

klaytaybai avatar Feb 08 '19 22:02 klaytaybai

Now that Layers have .Net Core support, any chance we could bring them Powershell? It would be awesome to be able to upload modules to layers and then have a -Function-Layers flag for the Publish-AWSPowerShellLambda cmdlet (similar to dotnet lambda deploy-function --function-layers).

burkasaurusrex avatar Apr 10 '19 09:04 burkasaurusrex

10 months later, any update here?

jgard avatar Feb 04 '20 19:02 jgard

@normj any thoughts?

pcgeek86 avatar May 27 '20 16:05 pcgeek86

Bueller? Would love for PS modules to be supported in layers.

sgnewman avatar Sep 18 '20 20:09 sgnewman

We haven't implemented anything yet for publishing PS modules as a Lambda Layer yet. There is some potentially interesting work we could do there but just haven't prioritized the work yet.

In theory you could zip up your dependent PS modules and publish that as a layer then in your PowerShell script to manually import the modules from the /opt folder that you zipped up in the layer. I haven't tired this but I don't see why it wouldn't work.

normj avatar Jan 06 '21 01:01 normj

We have noticed this issue has not received attention in 1 year. We will close this issue for now. If you think this is in error, please feel free to comment and reopen the issue.

github-actions[bot] avatar Aug 11 '22 00:08 github-actions[bot]