File tree Expand file tree Collapse file tree
aws-lambda-java-runtime-interface-client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,6 +73,24 @@ pom.xml
7373 <version >1.0.0</version >
7474 </dependency >
7575 </dependencies >
76+ <build >
77+ <plugins >
78+ <plugin >
79+ <groupId >org.apache.maven.plugins</groupId >
80+ <artifactId >maven-dependency-plugin</artifactId >
81+ <version >3.1.2</version >
82+ <executions >
83+ <execution >
84+ <id >copy-dependencies</id >
85+ <phase >package</phase >
86+ <goals >
87+ <goal >copy-dependencies</goal >
88+ </goals >
89+ </execution >
90+ </executions >
91+ </plugin >
92+ </plugins >
93+ </build >
7694</project >
7795```
7896src/main/java/example/App.java
@@ -92,7 +110,7 @@ To make it easy to locally test Lambda functions packaged as container images we
92110
93111* To install the emulator and test your Lambda function*
94112
95- 1 ) From your project directory, run the following command to download the RIE from GitHub and install it on your local machine.
113+ 1 ) Run the following command to download the RIE from GitHub and install it on your local machine.
96114
97115``` shell script
98116mkdir -p ~ /.aws-lambda-rie && \
@@ -105,7 +123,7 @@ mkdir -p ~/.aws-lambda-rie && \
105123docker run -d -v ~ /.aws-lambda-rie:/aws-lambda -p 9000:8080 \
106124 --entrypoint /aws-lambda/aws-lambda-rie \
107125 myfunction:latest \
108- java -cp ./* com.amazonaws.services.lambda.runtime.api.client.AWSLambda example.App::sayHello
126+ /usr/bin/ java -cp ' ./*' com.amazonaws.services.lambda.runtime.api.client.AWSLambda example.App::sayHello
109127```
110128
111129This runs the image as a container and starts up an endpoint locally at ` http://localhost:9000/2015-03-31/functions/function/invocations ` .
You can’t perform that action at this time.
0 commit comments