From 52d4a2ab0bf653e2bf91b9a7f20c584ad4b45b05 Mon Sep 17 00:00:00 2001 From: Thomas Schaaf Date: Wed, 6 Jun 2018 15:49:56 +0200 Subject: [PATCH] Automatically set region If not set it automatically uses the environment variable or defaults set via the serverless region setting. --- lib/providers/aws.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/providers/aws.js b/lib/providers/aws.js index 35de9ec..ddadd56 100644 --- a/lib/providers/aws.js +++ b/lib/providers/aws.js @@ -3,8 +3,7 @@ const AWS = require('aws-sdk') const defaultOptions = { - apiVersion: '2014-11-06', - region: process.env.AWS_DEFAULT_REGION || 'us-east-1' + apiVersion: '2014-11-06' } module.exports = function (options) {