Skip to content

Commit

Permalink
Deploy lambda using NODE_JS runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
LajosPolya committed Mar 15, 2024
1 parent b92f222 commit fc76814
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion deploy-lambda-from-docker-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This CDK app deploys a Lambda whose code is stored in a private S3 bucket.

### Build the Lambda handler

Follow the instructions in [lambda-handler](../lambda-handler/README.md#Build-Docker-Container) to build the handler. Note the Docker image *DOES NOT* need to be built.
Follow the instructions in [lambda-handler](../lambda-handler/README.md#Build-Docker-Container) to build the lambda handler. Note: only the lambda handler needs to be built with npm. The Docker image _DOES NOT_ need to be built.

### Deploy the Lambda

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export class DeployLambdaFromDockerImageStack extends cdk.Stack {
);

const lambda = new cdk.aws_lambda.Function(this, "dockerImageLambda", {
runtime: cdk.aws_lambda.Runtime.FROM_IMAGE,
runtime: cdk.aws_lambda.Runtime.NODEJS_20_X,
code: dockerImageCode,
handler: "Handler.FROM_IMAGE",
handler: "index.handler",
description: "Lambda deployed from local Docker image",
timeout: cdk.Duration.seconds(3),
functionName: `dockerImageLambda-${props.scope}`,
Expand Down
20 changes: 10 additions & 10 deletions deploy-lambda-from-docker-image/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fc76814

Please sign in to comment.