diff --git a/server/index.ts b/server/index.ts index 4cbfa2ba5..c5f6516f5 100644 --- a/server/index.ts +++ b/server/index.ts @@ -4,6 +4,7 @@ import env from "./env"; import "./logging/tracer"; // must come before importing any instrumented module +import maintance from "aws-sdk/lib/maintenance_mode_message"; import http from "http"; import https from "https"; import Koa from "koa"; @@ -26,6 +27,9 @@ import { checkConnection, sequelize } from "./storage/database"; import RedisAdapter from "./storage/redis"; import Metrics from "./logging/Metrics"; +// Suppress the AWS maintenance message until upgrade to v3. +maintance.suppress = true; + // The number of processes to run, defaults to the number of CPU's available // for the web service, and 1 for collaboration during the beta period. let webProcessCount = env.WEB_CONCURRENCY; diff --git a/server/typings/index.d.ts b/server/typings/index.d.ts index c1bdffcb8..9dc4a375d 100644 --- a/server/typings/index.d.ts +++ b/server/typings/index.d.ts @@ -21,3 +21,10 @@ declare module "@joplin/turndown-plugin-gfm" { export const taskListItems: Plugin; export const gfm: Plugin; } + +declare module "aws-sdk/lib/maintenance_mode_message" { + const maintance: { + suppress: boolean; + }; + export default maintance; +}