Skip to content

Commit a31412e

Browse files
committed
update function nodejs version
1 parent 43b2c72 commit a31412e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ From branch: [`lambda`](https://github.com/awslabs/eb-java-scorekeep/tree/lambda
1111
In the [`UserFactory`](https://github.com/awslabs/eb-java-scorekeep/tree/xray/src/main/java/scorekeep/UserFactory.java) class, Scorekeep calls a Node.js AWS Lambda function to generate random usernames. If the call to Lambda fails, Scorekeep falls back on a public API to generate names.
1212

1313
Run the script in the `_lambda` folder to create the AWS Lambda function that Scorekeep calls to generate random names:
14+
1415
eb-java-scorekeep/_lambda$ ./create-random-name.sh
1516

1617
The script uses a CloudFormation template and the AWS CLI to create the function and its execution role:

_lambda/random-name.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ Resources:
3232
FunctionName: random-name
3333
Handler: index.handler
3434
Role: { "Fn::GetAtt": ["RandomNameRole", "Arn"] }
35-
Runtime: nodejs4.3
35+
Runtime: nodejs12.x
3636
Timeout: 7

0 commit comments

Comments
 (0)