Open FieryCod opened 3 years ago
I can reproduce this issue.
I was able to successfully run the same scenario using SAM CLI 1.12.0 -I need to check later versions-, but it is not working using version 1.15.0
I need to investigate more to know the reason of this issue.
The issue is that this bootstrap file is overwriting the new RAPID server bootstrap file. I was able to successfully running this scenario, by doing the following steps:
lein uberjar
sam local start-api
@moelasmar confirmed that your solution works! Thanks. Should I close the issue?
@moelasmar I'm running into the same error of in zipfile does not have permission information
when doing sam local invoke --env-vars json/env.json --docker-network host --debug
, and I don't have a bootstrap file similar to the one list above. I'm running SAM CLI, version 1.21.1. Any ideas?
Resources:
HelloWorldFunction:
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
Handler: com.abc.Application::handleRequest
Runtime: java8
CodeUri: target/abc.jar
Description:
It seems to me that now
AWS SAM
does not allow to specify CodeUri as a path to.jar
file when usingsam local start-api
.Steps to reproduce:
lein uberjar
sam local start-api
Observed result:
Expected result:
It should work now as it was working a few months ago.
Additional environment details:
sam --version
: SAM CLI, version 1.15.0