-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Permission denied when trying to run function #428
Comments
I'm seeing the exact same output for a .net core 2.0 function that I am trying to execute. Here is the debug enabled output I am seeing:
|
@BrianFarnhill Your issue is related to #389. You can find details are workarounds there. @BenAychh Do you also have your code in a zip? Can you provide debug logs? Looking at the error, it seems like you may have your CodeUri in a zip and if you do, this issue is a duplicate of #389 |
Not in a zip but it is in a fat jar. Here is the output when running debug:
|
* # This is a combination of 2 commits. # This is the 1st commit message: Add dotnet7 build method for provided * Added 'BuildMethod: dotnet7' using 'Runtime:provided' * 'Runtime:provided' is only for the provided runtime and not the dotnet runtime Testing with sample SAM template: ( See BuildMethod and Runtime below ) ... HelloWorldFunction: Type: AWS::Serverless::Function Metadata: BuildMethod: dotnet7 Properties: CodeUri: ./src/HelloWorld/ Handler: HelloWorld::HelloWorld.Function::FunctionHandler Runtime: provided Architectures: - x86_64 ... # This is the commit message #2: Add dotnet7 build method for provided * Added 'BuildMethod: dotnet7' using 'Runtime:provided' * 'Runtime:provided' is only for the provided runtime and not the dotnet runtime Testing with sample SAM template: ( See BuildMethod and Runtime below ) ... HelloWorldFunction: Type: AWS::Serverless::Function Metadata: BuildMethod: dotnet7 Properties: CodeUri: ./src/HelloWorld/ Handler: HelloWorld::HelloWorld.Function::FunctionHandler Runtime: provided Architectures: - x86_64 ... * run black reformat Co-authored-by: Samiullah Mohammed <[email protected]> Co-authored-by: Wing Fung Lau <[email protected]> Co-authored-by: Mehmet Nuri Deveci <[email protected]>
* feat: add dotnet7 build method (#428) * # This is a combination of 2 commits. # This is the 1st commit message: Add dotnet7 build method for provided * Added 'BuildMethod: dotnet7' using 'Runtime:provided' * 'Runtime:provided' is only for the provided runtime and not the dotnet runtime Testing with sample SAM template: ( See BuildMethod and Runtime below ) ... HelloWorldFunction: Type: AWS::Serverless::Function Metadata: BuildMethod: dotnet7 Properties: CodeUri: ./src/HelloWorld/ Handler: HelloWorld::HelloWorld.Function::FunctionHandler Runtime: provided Architectures: - x86_64 ... # This is the commit message #2: Add dotnet7 build method for provided * Added 'BuildMethod: dotnet7' using 'Runtime:provided' * 'Runtime:provided' is only for the provided runtime and not the dotnet runtime Testing with sample SAM template: ( See BuildMethod and Runtime below ) ... HelloWorldFunction: Type: AWS::Serverless::Function Metadata: BuildMethod: dotnet7 Properties: CodeUri: ./src/HelloWorld/ Handler: HelloWorld::HelloWorld.Function::FunctionHandler Runtime: provided Architectures: - x86_64 ... * run black reformat Co-authored-by: Samiullah Mohammed <[email protected]> Co-authored-by: Wing Fung Lau <[email protected]> Co-authored-by: Mehmet Nuri Deveci <[email protected]> * update provided with provided.al2 * Update test_build_cmd.py * Update test_workflow_config.py * Update aws-lambda-tools-defaults.json Co-authored-by: Beau Gosse <[email protected]> Co-authored-by: Samiullah Mohammed <[email protected]> Co-authored-by: Wing Fung Lau <[email protected]>
Whenever I run
sam local invoke Hello <<< "{}"
orsam local start-api -d 5858
and try to invoke my function, I am getting the following stack trace.Steps to reproduce the issue:
sam local invoke Hello <<< "{}"
Observed result:
Expected result:
The function to run.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Manjaro Linux
Docker version 18.04.0-ce, build 3d479c0af6
docker containers (I assume are being run)
lambci/lambda latest 6ad25a1b8bf1 10 days ago 968MB
lambci/lambda java8 674182a5353c 10 days ago 940MB
Output of
sam --version
:SAM CLI, version 0.3.0
Optional Debug logs:
Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: