pulumi / templates

Templates used by `pulumi new`
Apache License 2.0
106 stars 66 forks source link

C# Serverless Template should have C# lambda handler, not Python #773

Open IaroslavTitov opened 7 months ago

IaroslavTitov commented 7 months ago

Hello!

Issue details

I was surprised when I created a project using serverless-aws-csharp template - pulumi program was in C# alright, but lambda handler was in python. I picked C# template exactly to NOT use Python :D It would be great if the lambda handler was also in C#. I understand that would make the project more complicated, since for C# user needs to run dotnet publish to compile lambda code before running pulumi up and uploading the lambda, AND the right path to binaries needs to be used, but I think it's worth it to have parity between languages. I changed Python handler to dotnet handler in 15-20 minutes, but only because I was fairly familiar with C# lambda handlers, for someone doing it for the first time, it would have taken longer, slowing down users.

Affected area/feature

serverless-aws-csharp and any other templates containing lambda handlers in different language than the main template language.

cnunciato commented 6 months ago

Great suggestion @IaroslavTitov! We'll see what we can do to strike a better balance here.