-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PowerShell deployment example #16
Comments
Is this a request to show how to deploy and use the runtime? This is what I'm after too so if there are any instructions I'd me most grateful. |
yes it is. It is to offer an example of how to deploy the custom runtime, using nothing but powershell cmdlets/modules. I am patiently awaiting this. |
Every time we try to go down this route for a pure Windows PowerShell build, the underlying Lambda layer is not formatted correctly. For example the The only reliable way we've currently found to build from Windows is to use WSL from Windows, and the SAM CLI from within WSL. |
Greets. Firstly, still loving this Lambda PS runtime -- so good! Thx @austoonz and e'erbody that has made this As for building/deploying a working runtime layer from Windows directly (as in, not from within WSL), I've been able to succeed in at least a couple of ways. In effort to see how I can help with this issue, I'll share those here to get feedback. ❓ My question to the group: what, beyond the descriptions below, will be most helpful in enabling people to succeed in this use case of, "new Lambda PS runtime layer built and deployed from directly within Windows"? Like, having a repo with steps/examples of end-to-end success? Or, me just submitting a PR to this current repo with a Docs update? Something else? Success from Windows via each of:
Steps:
|
Thank you for the details. I will note that in both a Windows Workspace and a Windows EC2 Instance of mine, the above does not work from either PowerShell or Windows PowerShell (after changing the For me, using the PowerShell build script in PowerShell on Linux does not work either... same end result with a broken bootstrap. {
"errorType": "Runtime.InvalidEntrypoint",
"errorMessage": "RequestId: 665609a7-17d4-496c-b052-1b0c463561b2 Error: fork/exec /opt/bootstrap: exec format error"
} |
For awareness from further testing, I think this error might have something to do with the In my Linux testing, after building the layer with That's where I'm now looking... |
Found what I think the issue is, will test further across Windows, Linux, and PowerShell/Windows PowerShell to confirm. The ... New commits have been pushed to resolve the above issue. I am leaving this issue open as I would still like to have complete PowerShell examples that do not depend on |
Sounds good! @austoonz -- for the packaging portion of such an example, OK to use |
…d' is an option; relates to awslabs#16
…source summary; relates to awslabs#16
In case this is the desire, I forked this repo and pushed a couple of commits that add such an example. See the comparison at https://github.com/awslabs/aws-lambda-powershell-runtime/compare/main..mtboren:aws-lambda-powershell-runtime_fork:feat_AddPShellDeployExample How does that do for including a PowerShell-only deployment example, @austoonz? |
I've taken a few stabs at running through the details you've outlined, and both times I end up with execution errors. I have yet to get to the root of the issue (and honestly I haven't spent any real time trying to troubleshoot it).
|
Provide an example for how to deploy the runtime using PowerShell (and only PowerShell).
The text was updated successfully, but these errors were encountered: