Increase the speed of serverless deployment
Do you want to increase the speed of your deployment? Waiting for deploying your serverless?
TLDR: add deploymentMethod: direct to you serverless.yaml config
provider:
name: aws
deploymentMethod: direct
What's going on?
Serverless introduces a new method of deploying, direct deploy
Since Serverless Framework v3, deployments are done using CloudFormation change sets.
It is possible to use CloudFormation direct deployments instead.
Direct deployments are faster and have no downsides
(unless you specifically use the generated change sets). They will become the default in Serverless Framework 4.
provider:
name: aws
deploymentMethod: direct
So what does it mean "direct deploy", or old "changeset"?
So the old method of deployment in a serverless framework is changesets. According to https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html this is the method of "preview how proposed changes to a stack might impact your running resources". But in serverless you don't use this feature. Just deploy changes. So preferable to use the direct method from my side