awslabs / aws-lambda-powershell-runtime

This new PowerShell custom runtime for AWS Lambda makes it even easier to run Lambda functions written in PowerShell to process events.
Apache License 2.0
57 stars 17 forks source link

AWS Lambda Code Source #20

Closed kymcharlesworth-srg closed 11 months ago

kymcharlesworth-srg commented 1 year ago

When pasting code into Lambda using the aws-lambda-powershell-runtime (Code Source) random space characters are removed from the code. E.G. Import-Module -Name AWS.Tools.Common can end up as Import-Module-Name AWS.Tools.Common. These missing space characters seem to randomly scattered throughout the script and take a long time to debug.

julianwood commented 1 year ago

Where are you pasting the code? Into the Lambda console code editor, within a SAM template, as a separate file, or inline?

kymcharlesworth-srg commented 1 year ago

Pasting into the Lambda console code editor.

julianwood commented 11 months ago

I cant' seem to reproduce this. Perhaps there is some console issue you are seeing. Could be local browser or console service itself. Can you check this is still happening and, if so, log a support call in the Lambda console where the team can investigate as this doesn't seem PowerShell specific.