Open luazhizhan opened 3 years ago
I have found the solution. The CodeUri
attribute in AWS::Serverless::Function
resource written in template.yaml
only works locally. It will require a different value for it to work on the AWS cloud.
For local build, use the API folder name.
CodeUri: HelloWorldFunction
For deployment build, it has to be the path to the jar
file that is built by running this command, mvn clean package
. Which in this case is
CodeUri: ./HelloWorldFunction/target/HelloWorld-1.0.jar
Hi, I tried to deploy this application to my AWS cloud. I encountered this error when I call the hello API.