Skip to content

Commit 63182b1

Browse files
committed
Disable deprecation warning in the logs
1 parent fe21300 commit 63182b1

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

cdk/lib/__snapshots__/report.test.ts.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ exports[`The Report stack matches the snapshot for CODE 1`] = `
342342
"Environment": {
343343
"Variables": {
344344
"APP": "eventconsumer",
345+
"AWS_JAVA_V1_DISABLE_DEPRECATION_ANNOUNCEMENT": "true",
345346
"App": "eventconsumer",
346347
"AthenaDatabase": "notifications",
347348
"AthenaOutputLocation": {
@@ -2012,6 +2013,7 @@ exports[`The Report stack matches the snapshot for PROD 1`] = `
20122013
"Environment": {
20132014
"Variables": {
20142015
"APP": "eventconsumer",
2016+
"AWS_JAVA_V1_DISABLE_DEPRECATION_ANNOUNCEMENT": "true",
20152017
"App": "eventconsumer",
20162018
"AthenaDatabase": "notifications",
20172019
"AthenaOutputLocation": {

cdk/lib/report.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ export class Report extends GuStack {
223223
IngestLocation: `s3://${eventLogsBucket.bucketName}/fastly/notifications/received`,
224224
AthenaOutputLocation: `s3://${eventLogsBucket.bucketName}/athena`,
225225
AthenaDatabase: 'notifications',
226+
AWS_JAVA_V1_DISABLE_DEPRECATION_ANNOUNCEMENT: 'true',
226227
},
227228
functionName: [stack, eventConsumerApp, stage].join('-'),
228229
});

0 commit comments

Comments
 (0)