From 7e70035004defc0bb87ff3b0a5eab2b09fe5514d Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Thu, 16 Jan 2020 14:50:14 +0100 Subject: [PATCH 1/2] Fix AWS SDK initialization after in internal change in serverless --- index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.ts b/index.ts index 0f29566d..9297286c 100644 --- a/index.ts +++ b/index.ts @@ -176,6 +176,7 @@ class ServerlessCustomDomain { this.enabled = this.evaluateEnabled(); if (this.enabled) { const credentials = this.serverless.providers.aws.getCredentials(); + credentials.region = this.serverless.providers.aws.getRegion(); this.serverless.providers.aws.sdk.config.update({maxRetries: 20}); this.apigateway = new this.serverless.providers.aws.sdk.APIGateway(credentials); From 21864ad3ead0c5eea165efd89f7b29f5f14238b8 Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Thu, 16 Jan 2020 14:55:48 +0100 Subject: [PATCH 2/2] Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7b539e7a..102f8230 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "serverless-domain-manager", - "version": "3.3.0", + "version": "3.3.1", "engines": { "node": ">=4.0" },