Skip to content

Commit c475224

Browse files
committed
Updated README to include Java
1 parent 22250aa commit c475224

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ cd nodejs;
3131
cd ..
3232
```
3333

34+
```
35+
cd java;
36+
./publish-layers.sh
37+
cd ..
38+
```
39+
3440
## Attaching Custom Lambda Layer ARNs
3541

3642
The layers published to your account may be used directly within SAM, Cloudformation Templates, Serverless.yml, or other configuration methods that allow specifying the use of layers by ARN.
@@ -56,6 +62,9 @@ These steps will help you configure the layers correctly:
5662
3. Update your functions handler to point to the newly attached layer in the console for your function:
5763
* Python: newrelic_lambda_wrapper.handler
5864
* Node: newrelic-lambda-wrapper.handler
65+
* Java:
66+
* RequestHandler implementation: com.newrelic.java.RequestHandlerWrapper::handleRequest
67+
* RequestStreamHandlerWrapper implementation: com.newrelic.java.RequestStreamHandlerWrapper::handleRequest
5968
4. Add these environment variables to your Lambda console:
6069
* NEW_RELIC_ACCOUNT_ID: Your New Relic account ID
6170
* NEW_RELIC_LAMBDA_HANDLER: Path to your initial handler.

0 commit comments

Comments
 (0)