Documentation missing for PowerShell Containers on AWS Lambda
See original GitHub issueI 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.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:12
- Comments:7 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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?
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.