From 3e983f347a10601e5dc5b1e6c19ae2822c94f682 Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Tue, 16 Mar 2021 17:44:44 +0100 Subject: [PATCH] fix: Bring back "provider.sdk" property, to not break plugins --- lib/plugins/aws/provider.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/plugins/aws/provider.js b/lib/plugins/aws/provider.js index 526557ea0..bad1a05e0 100644 --- a/lib/plugins/aws/provider.js +++ b/lib/plugins/aws/provider.js @@ -208,6 +208,9 @@ class AwsProvider { this.options = options; this.provider = this; // only load plugin in an AWS service context this.serverless = serverless; + // Notice: provider.sdk is used by plugins. Do not remove without deprecating first and + // offering a reliable alternative + this.sdk = AWS; this.serverless.setProvider(constants.providerName, this); this.hooks = { initialize: () => {