Closed kymcharlesworth-srg closed 11 months ago
Where are you pasting the code? Into the Lambda console code editor, within a SAM template, as a separate file, or inline?
Pasting into the Lambda console code editor.
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.
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.