Skip to content

Commit

Permalink
fix: Bring back "provider.sdk" property, to not break plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Mar 16, 2021
1 parent 010a356 commit 3e983f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/plugins/aws/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: () => {
Expand Down

0 comments on commit 3e983f3

Please sign in to comment.