I’m working on a serverless plugin that is AWS specific.
According to the documentation here, provider specific plugins should supply the provider name as a property on the plugin.
class ProviderDeploy {
constructor(serverless, options) {
this.serverless = serverless;
this.options = options;
// set the providers name here
this.provider = 'providerName';
This seems to conflict with the built-in AWS plugins. These seem to call getProvider(‘aws’). See the deploy plugin for example.
class AwsDeploy {
constructor(serverless, options) {
this.serverless = serverless;
this.options = options;
this.provider = this.serverless.getProvider('aws');
Which is correct or am I confusing apples and oranges?