Closed super132 closed 10 months ago
I think the issue is related setting the application name to contain dashes in the name. If you used a name without dashes like samapp
, sam build
will finish successfully, but sam local invoke
does not work.
Description:
After running
sam init
and created a .NET6 Serverless API application, when I ransam build -u
, I got the following error:Steps to reproduce:
sam init
.net6
as runtimesam build -u
Observed result:
Error out with the stacktrace in the description.
Expected result:
Operation should be completed without errors
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
{ "version": "1.93.0", "system": { "python": "3.11.3", "os": "Linux-5.4.247-169.350.amzn2int.x86_64-x86_64-with-glibc2.26" }, "additional_dependencies": { "docker_engine": "20.10.23", "aws_cdk": "Not available", "terraform": "1.5.0" }, "available_beta_feature_env_vars": [ "SAM_CLI_BETA_FEATURES", "SAM_CLI_BETA_BUILD_PERFORMANCE", "SAM_CLI_BETA_TERRAFORM_SUPPORT", "SAM_CLI_BETA_RUST_CARGO_LAMBDA" ] }