fix: Bring back "provider.sdk" property, to not break plugins

This commit is contained in:
Mariusz Nowak 2021-03-16 17:44:44 +01:00 committed by Mariusz Nowak
parent 010a356d2f
commit 3e983f347a

View File

@ -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: () => {