File tree Expand file tree Collapse file tree 7 files changed +5
-11
lines changed Expand file tree Collapse file tree 7 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ The Serverless Application Model Command Line Interface (SAM CLI) is an extensio
42
42
To use the SAM CLI, you need the following tools.
43
43
44
44
* SAM CLI - [ Install the SAM CLI] ( https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html )
45
- * Java11 - [ Install the Java 11 ] ( https://docs.aws.amazon.com/corretto/latest/corretto-11 -ug/downloads-list.html )
45
+ * Java21 - [ Install the Java 21 ] ( https://docs.aws.amazon.com/corretto/latest/corretto-21 -ug/downloads-list.html )
46
46
* Maven - [ Install Maven] ( https://maven.apache.org/install.html )
47
47
48
48
If you have brew installed then
49
49
``` bash
50
50
brew install aws-sam-cli
51
- brew install corretto11
51
+ brew install corretto21
52
52
brew install maven
53
53
```
54
54
Original file line number Diff line number Diff line change 7
7
<packaging >jar</packaging >
8
8
<name >Postgres Lambda Trigger Demo</name >
9
9
<properties >
10
- <maven .compiler.source>17 </maven .compiler.source>
11
- <maven .compiler.target>17 </maven .compiler.target>
10
+ <maven .compiler.source>21 </maven .compiler.source>
11
+ <maven .compiler.target>21 </maven .compiler.target>
12
12
</properties >
13
13
14
14
<dependencyManagement >
Original file line number Diff line number Diff line change 9
9
import com .amazonaws .services .lambda .runtime .events .APIGatewayProxyResponseEvent ;
10
10
import org .apache .logging .log4j .LogManager ;
11
11
import org .apache .logging .log4j .Logger ;
12
- import org .jooq .DSLContext ;
13
12
import org .jooq .Record ;
14
13
import org .jooq .Table ;
15
14
import org .jooq .impl .DSL ;
Original file line number Diff line number Diff line change 9
9
import com .amazonaws .services .lambda .runtime .events .APIGatewayProxyResponseEvent ;
10
10
import org .apache .logging .log4j .LogManager ;
11
11
import org .apache .logging .log4j .Logger ;
12
- import org .jooq .DSLContext ;
13
12
import org .jooq .impl .DSL ;
14
13
15
14
/**
Original file line number Diff line number Diff line change 15
15
import java .io .Writer ;
16
16
import org .apache .logging .log4j .LogManager ;
17
17
import org .apache .logging .log4j .Logger ;
18
- import org .jooq .DSLContext ;
19
18
20
19
/**
21
20
* Base class for handling triggers from Postgres
Original file line number Diff line number Diff line change 5
5
package demo ;
6
6
7
7
import com .fasterxml .jackson .databind .JsonNode ;
8
- import org .jooq .DataType ;
9
8
import org .jooq .JSONB ;
10
9
import org .jooq .impl .DSL ;
11
10
Original file line number Diff line number Diff line change @@ -17,14 +17,13 @@ Globals:
17
17
Function :
18
18
Environment :
19
19
Variables :
20
- JAVA_TOOL_OPTIONS : -XX:+TieredCompilation -XX:TieredStopAtLevel=1
21
20
DB_MASTER_SECRET_ARN : !GetAtt RDSStack.Outputs.SecretArn
22
21
DB_ENDPOINT : !GetAtt RDSStack.Outputs.Endpoint
23
22
DB_NAME : !Ref DBNAMEPARAM
24
23
CodeUri : .
25
24
Architectures :
26
25
- x86_64
27
- Runtime : java17
26
+ Runtime : java21
28
27
Timeout : 30
29
28
MemorySize : 3009
30
29
@@ -262,7 +261,6 @@ Resources:
262
261
Variables :
263
262
SQS_QUEUE_URL : !Ref SQSQueue
264
263
# Don't need to set anything for this lambda other than above
265
- JAVA_TOOL_OPTIONS : !Ref AWS::NoValue
266
264
DB_MASTER_SECRET_ARN : !Ref AWS::NoValue
267
265
DB_ENDPOINT : !Ref AWS::NoValue
268
266
DB_NAME : !Ref AWS::NoValue
You can’t perform that action at this time.
0 commit comments