Closed sholland-bamboohealth closed 6 months ago
What version of AWS SAM are you running? Looks like the version you have may not support the al.2023 runtime.
SAM CLI, version 1.107.0
what version works?
That's certainly up to date enough. I've tried with the same version and get no error: This from the logs
chmod +x /mnt/c/GitProjects/PowerShell/github-awslabs/aws-lambda-powershell-runtime/examples/demo-runtime-layer-function/.aws-sam/build/PwshRuntimeLayer/bootstrap
Building codeuri:
/mnt/c/GitProjects/PowerShell/github-awslabs/aws-lambda-powershell-runtime/examples/demo-runtime-layer-function/function
runtime: provided.al2023 metadata: {'BuildMethod': 'makefile'} architecture: x86_64 functions: DemoPowerShellFunction
DemoPowerShellFunction: Running CustomMakeBuilder:CopySource
DemoPowerShellFunction: Running CustomMakeBuilder:MakeBuild
DemoPowerShellFunction: Current Artifacts Directory :
/mnt/c/GitProjects/PowerShell/github-awslabs/aws-lambda-powershell-runtime/examples/demo-runtime-layer-function/.aws-sam
/build/DemoPowerShellFunction
cp -R . /mnt/c/GitProjects/PowerShell/github-awslabs/aws-lambda-powershell-runtime/examples/demo-runtime-layer-function/.aws-sam/build/DemoPowerShellFunction
rm /mnt/c/GitProjects/PowerShell/github-awslabs/aws-lambda-powershell-runtime/examples/demo-runtime-layer-function/.aws-sam/build/DemoPowerShellFunction/Makefile
Build Succeeded
# sam --version
SAM CLI, version 1.107.0
Can you try sam build --parallel --use-container
to try role out some local build environment issue.
when I run sam build --parallel it fails at