Skip to content

Commit

Permalink
Merge pull request #307 from medikoo/patch-1
Browse files Browse the repository at this point in the history
Fix AWS SDK initialization after internal change in serverless
  • Loading branch information
jconstance-amplify committed Jan 16, 2020
2 parents e01cd42 + 21864ad commit 633a506
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.ts
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "serverless-domain-manager",
"version": "3.3.0",
"version": "3.3.1",
"engines": {
"node": ">=4.0"
},
Expand Down

0 comments on commit 633a506

Please sign in to comment.