Skip to content

Commit 545ca7a

Browse files
author
Vadym Kazulkin
committed
add aws lambda container mage with java21
1 parent cc4f8ca commit 545ca7a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

pure-lambda-java-21-docker-image-alpine-linux/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version>
1414
<versions-maven-plugin.version>2.2</versions-maven-plugin.version>
1515
<maven-shade-plugin.version>2.4.3</maven-shade-plugin.version>
16-
<aws.lambda.java.core.version>1.2.2</aws.lambda.java.core.version>
16+
<aws.lambda.java.core.version>1.2.3</aws.lambda.java.core.version>
1717
</properties>
1818
<repositories>
1919
<repository>
@@ -93,6 +93,11 @@
9393
<artifactId>aws-lambda-java-runtime-interface-client</artifactId>
9494
<version>2.4.1</version>
9595
</dependency>
96+
<dependency>
97+
<groupId>com.amazonaws</groupId>
98+
<artifactId>aws-lambda-java-serialization</artifactId>
99+
<version>1.1.5</version>
100+
</dependency>
96101

97102
</dependencies>
98103

pure-lambda-java-21-docker-image-alpine-linux/template.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Resources:
9191
Properties:
9292
FunctionName: GetProductByIdWithPureJava21DockerImageAlpine
9393
PackageType: Image
94-
ImageUri: !Sub ${AWS::AccountId}.dkr.ecr.eu-central-1.amazonaws.com/aws-pure-lambda-java21-custom-docker-image-alpine:latest
94+
ImageUri: !Sub ${AWS::AccountId}.dkr.ecr.eu-central-1.amazonaws.com/aws-pure-lambda-java21-custom-docker-image-alpine:latest1
9595
ImageConfig:
9696
Command: ["software.amazonaws.example.product.handler.GetProductByIdHandler::handleRequest"]
9797
Policies:
@@ -112,13 +112,13 @@ Resources:
112112
LogGroupName: !Sub "/aws/lambda/${GetProductByIdFunction}"
113113
RetentionInDays: 7
114114

115-
115+
116116
PutProductFunction:
117117
Type: AWS::Serverless::Function
118118
Properties:
119119
FunctionName: PutProductWithPureJava21DockerImageAlpine
120120
PackageType: Image
121-
ImageUri: !Sub ${AWS::AccountId}.dkr.ecr.eu-central-1.amazonaws.com/aws-pure-lambda-java21-custom-docker-image-alpine:latest
121+
ImageUri: !Sub ${AWS::AccountId}.dkr.ecr.eu-central-1.amazonaws.com/aws-pure-lambda-java21-custom-docker-image-alpine:latest1
122122
ImageConfig:
123123
Command: ["software.amazonaws.example.product.handler.CreateProductHandler::handleRequest"]
124124

0 commit comments

Comments
 (0)