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.

Documentation missing for PowerShell Containers on AWS Lambda

See original GitHub issue

I was going through the documentation for AWS Lambda and noticed that there isn’t any documentation for PowerShell Containers on Lambda. According to the Lambda Containers announcement, all Lambda runtimes are supported with containers. Is that true for PowerShell?

I also tried to run pwsh from the “dotnet” container image on the AWS public ECR gallery. It doesn’t appear to be installed in the dotnet image, so how would I package up a PowerShell container for Lambda?

PS > docker run --rm -it --entrypoint sh public.ecr.aws/lambda/dotnet
sh-4.2# ls
sh-4.2# dotnet

Usage: dotnet [options]
Usage: dotnet [path-to-application]

Options:
  -h|--help         Display help.
  --info            Display .NET information.
  --list-sdks       Display the installed SDKs.
  --list-runtimes   Display the installed runtimes.

path-to-application:
  The path to an application .dll file to execute.
sh-4.2# pwsh
sh: pwsh: command not found

Notice how the documentation for Lambda Containers skips over PowerShell, but exists for other languages, in the following screenshot.

image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:12
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
normjcommented, Mar 12, 2021

We haven’t built a PowerShell base image yet for Lambda. I like the idea and hope we can we prioritize it. So anybody else that wants this feature please +1 this issue.

Out of curiosity for PowerShell users, is requiring Docker for a PowerShell Lambda experience a significant hurdle to using PowerShell on Lambda?

3reactions
pcgeek86commented, Mar 12, 2021

Out of curiosity for PowerShell users, is requiring Docker for a PowerShell Lambda experience a significant hurdle to using PowerShell on Lambda?

No, it’s not a significant hurdle. Publishing PowerShell Lambda functions is fairly straightforward with the AWSLambdaPSCore.

That being said, I would love to NOT have to worry about installing this module separately, and simply build a standard Dockerfile, just like every other programming language.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot container image issues in Lambda
Error: You are using an AWS CloudFormation template, and your container ENTRYPOINT is being overridden with a null or empty value. Review the...
Read more >
Troubleshoot deployment issues in Lambda
When you deploy updates to your function directly with the Lambda API or with a client such as the AWS CLI, you can...
Read more >
Working with Lambda container images
Create a container image for a Lambda function by using an AWS provided base image or an alternative base image.
Read more >
Custom Lambda runtimes
You can implement an AWS Lambda runtime in any programming language. A runtime is a program that runs a Lambda function's handler method...
Read more >
Lambda function versions
You can use versions to manage the deployment of your functions. For example, you can publish a new version of a function for...
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