Serverless: deploy particular profile - Stack Overflow
stackoverflow.com › questions › 43425065Apr 15, 2017 · On newest versions of serverless (currently 1.26.1), you can provide the argument --aws-profile. However, in your case, another option could be to use "per stage" profile: service: new-service provider: name: aws runtime: nodejs6.10 stage: $ {opt:stage, self:custom.defaultStage} profile: $ {self:custom.profiles.$ {self:provider.stage}} custom: defaultStage: dev profiles: dev: devProfile prod: prodProfile.