Skip to content

Commit 9df81ea

Browse files
author
Vadym Kazulkin
committed
improved readme
1 parent 1db777f commit 9df81ea

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

spring-boot-3.2-docker-image-with-crac/src/main/java/software/amazonaws/example/product/handler/GetProductByIdHandler.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,13 @@ public class GetProductByIdHandler implements Function<APIGatewayProxyRequestEve
3636

3737
public APIGatewayProxyResponseEvent apply(APIGatewayProxyRequestEvent requestEvent) {
3838

39-
40-
Path filePath = Path.of("/tmp/crac/dump4.log");
41-
39+
Path filePath = Path.of("/tmp/crac/dump4.log");
4240
try {
4341
String content = Files.readString(filePath);
4442
logger.info("crac dump" +content);
4543
} catch (IOException e) {
46-
47-
}
44+
logger.info("error reading dmup" +e.getMessage());
45+
}
4846

4947
Properties prop = System.getProperties();
5048
logger.info ("JVM Vendor : " + prop.getProperty("java.vendor") );

spring-boot-3.2-docker-image-with-crac/template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Resources:
110110
Type: AWS::Serverless::Function
111111
Properties:
112112
PackageType: Image
113-
ImageUri: !Sub ${AWS::AccountId}.dkr.ecr.eu-central-1.amazonaws.com/aws-spring-boot-3.2-java21-crac-custom-docker-image:v1
113+
ImageUri: !Sub ${AWS::AccountId}.dkr.ecr.eu-central-1.amazonaws.com/aws-spring-boot-3.2-java21-with-crac-custom-docker-image:v1
114114
ImageConfig:
115115
Command: ["org.springframework.cloud.function.adapter.aws.FunctionInvoker::handleRequest"]
116116
Environment:
@@ -139,7 +139,7 @@ Resources:
139139
Type: AWS::Serverless::Function
140140
Properties:
141141
PackageType: Image
142-
ImageUri: !Sub ${AWS::AccountId}.dkr.ecr.eu-central-1.amazonaws.com/aws-spring-boot-3.2-java21-crac-custom-docker-image:v1
142+
ImageUri: !Sub ${AWS::AccountId}.dkr.ecr.eu-central-1.amazonaws.com/aws-spring-boot-3.2-java21-with-crac-custom-docker-image:v1
143143
ImageConfig:
144144
Command: ["org.springframework.cloud.function.adapter.aws.FunctionInvoker::handleRequest"]
145145
Environment:

0 commit comments

Comments
 (0)