File tree Expand file tree Collapse file tree 2 files changed +27
-12
lines changed Expand file tree Collapse file tree 2 files changed +27
-12
lines changed Original file line number Diff line number Diff line change 28
28
</exclusion >
29
29
</exclusions >
30
30
</dependency >
31
+
32
+ <dependency >
33
+ <groupId >org.apache.logging.log4j</groupId >
34
+ <artifactId >log4j-bom</artifactId >
35
+ <version >2.24.3</version >
36
+ <type >pom</type >
37
+ <scope >import</scope >
38
+ </dependency >
39
+
40
+ <dependency >
41
+ <groupId >org.jooq</groupId >
42
+ <artifactId >jooq-bom</artifactId >
43
+ <version >3.20.5</version >
44
+ <type >pom</type >
45
+ <scope >import</scope >
46
+ </dependency >
47
+
31
48
</dependencies >
32
49
</dependencyManagement >
33
50
54
71
<artifactId >aws-lambda-java-log4j2</artifactId >
55
72
<version >1.6.0</version >
56
73
</dependency >
74
+
75
+
57
76
<dependency >
58
77
<groupId >org.apache.logging.log4j</groupId >
59
78
<artifactId >log4j-api</artifactId >
60
- <version >2.24.3</version >
61
79
</dependency >
62
80
<dependency >
63
81
<groupId >org.apache.logging.log4j</groupId >
64
82
<artifactId >log4j-core</artifactId >
65
- <version >2.24.3</version >
66
83
</dependency >
67
84
<dependency >
68
85
<groupId >org.apache.logging.log4j</groupId >
69
- <artifactId >log4j-slf4j18-impl</artifactId >
70
- <version >2.18.0</version >
86
+ <artifactId >log4j-slf4j-impl</artifactId >
71
87
</dependency >
72
88
73
89
81
97
</exclusion >
82
98
</exclusions >
83
99
</dependency >
100
+
101
+ <dependency >
102
+ <groupId >software.amazon.awssdk</groupId >
103
+ <artifactId >aws-crt-client</artifactId >
104
+ </dependency >
84
105
85
106
<dependency >
86
107
<groupId >org.postgresql</groupId >
90
111
<dependency >
91
112
<groupId >org.jooq</groupId >
92
113
<artifactId >jooq</artifactId >
93
- <version >3.20.5</version >
94
114
</dependency >
95
115
<dependency >
96
116
<groupId >software.amazon.lambda</groupId >
Original file line number Diff line number Diff line change 9
9
import java .util .Objects ;
10
10
import org .jooq .JSONB ;
11
11
import org .jooq .impl .DSL ;
12
- import software .amazon .awssdk .auth .credentials .EnvironmentVariableCredentialsProvider ;
13
- import software .amazon .awssdk .core .SdkSystemSetting ;
14
- import software .amazon .awssdk .http .urlconnection .UrlConnectionHttpClient ;
15
- import software .amazon .awssdk .regions .Region ;
12
+ import software .amazon .awssdk .http .crt .AwsCrtHttpClient ;
16
13
import software .amazon .awssdk .services .location .LocationClient ;
17
14
import software .amazon .awssdk .services .location .model .SearchPlaceIndexForTextResponse ;
18
15
@@ -28,9 +25,7 @@ public class PostgresAddressTrigger extends PostgresAbstractTrigger {
28
25
29
26
static {
30
27
locationClient = LocationClient .builder ()
31
- .region (Region .of (System .getenv (SdkSystemSetting .AWS_REGION .environmentVariable ())))
32
- .credentialsProvider (EnvironmentVariableCredentialsProvider .create ())
33
- .httpClient (UrlConnectionHttpClient .builder ().build ())
28
+ .httpClient (AwsCrtHttpClient .builder ().build ())
34
29
.build ();
35
30
36
31
PLACE_INDEX = System .getenv ("PLACE_INDEX" );
You can’t perform that action at this time.
0 commit comments