question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot target dotnet6 runtime for lambda's

See original GitHub issue

Hello!

  • Vote on this issue by adding a 👍 reaction
  • To contribute a fix for this issue, leave a comment (and link to your pull request, if you’ve opened one already)

Issue details

In light of https://github.com/pulumi/pulumi-aws/issues/1837, where the option for dotnet6 was added to the NuGet package, I still cannot run pulumi up without errors.

Steps to reproduce

  1. Create a Lambda.FunctionArgs where Runtime is set to Lambda.Runtime.Dotnet6. Note that I’m using the classic SDK (Pulumi.Aws on NuGet)
  2. pulumi up

Expected: My deployment to run as dotnet6 was added. Actual: I got

Diagnostics:
  aws:lambda:Function (my-lambda):
    error: aws:lambda/function:Function resource 'my-lambda' has a problem: expected runtime to be one of [nodejs nodejs4.3 nodejs6.10 nodejs8.10 nodejs10.x nodejs12.x nodejs14.x java8 java8.al2 java11 python2.7
python3.6 python3.7 python3.8 python3.9 dotnetcore1.0 dotnetcore2.0 dotnetcore2.1 dotnetcore3.1 nodejs4.3-edge go1.x ruby2.5 ruby2.7 provided provided.al2], got dotnet6. Examine values at 'Function.Runtime'.

There also is a weird thing going on where pulumi plugin ls shows two resources:

NAME  KIND      VERSION  SIZE    INSTALLED     LAST USED
aws   resource  4.38.0   356 MB  14 hours ago  14 hours ago
aws   resource  4.37.5   355 MB  14 hours ago  14 hours ago

Even when I remove all resources, running pulumi up still downloads both resources. I’m not sure if this is expected behavior or relevant to the dotnet6 runtime problem.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
stack72commented, Mar 9, 2022

Hi folks

I’ll have v4.38.1 published in the morning (UK time) to address this

Sorry for the problem here

Paul

3reactions
GodspeedYouBlackEmperorcommented, Mar 5, 2022

Hello, Looks like terraform-provider-aws in v. 4.4.0 is released already. It will be great to get at least an alpha package with the upgrade as soon as possible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introducing the .NET 6 runtime for AWS Lambda
This is written by Norm Johanson, Senior Software Dev Engineer. You can now use the .NET 6 runtime to build AWS Lambda functions....
Read more >
Error on deploying lambda function with .net 6 when ... - GitHub
1 to AWS Lambda function fails at dotnet lambda deploy-function. Locally the project works (build + local run). Expected Behavior .Net 6 project ......
Read more >
.NET 6 Custom Runtime for AWS Lambda | no dogma blog
You can't yet run .NET 6 on AWS Lambda with the familiar managed runtime, but you can with a custom runtime. Here are...
Read more >
Using the new .NET 6.0 runtime in AWS Lambda - YouTube
In this session, Norm Johanson, Senior Software Dev Engineer for AWS SDKs and Tools joins Julian Wood to talk about how the newly...
Read more >
Unable to load type from assembly (C# Amazon lambda ...
The --runtime was set to linux-x64 . Using dotnet lambda package -farch arm64 solved it. The output of dotnet lambda help package :...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found