ABCD
1
SAMServerlessComment
2
Configuration
3
Custom layersyesyes
4
CloudFormation supportyesyes
5
AWS pseudo variable supportyesyesServerless supports it via the plugin serverless-pseudo-parameters
6
Define the region once and for allnoyes
7
Define the CF stack name once and for allnoyes
8
Resource names are what is defined in the configurationyesnoServerless creates unique names with the stage name. It is possible to override it though.
9
Include SAR applicationsyes?
10
Nested stacksyesyes
11
Extensible syntaxnoyesServerless plugins
12
Include configuration variable from filenoyesSee https://serverless.com/framework/docs/providers/aws/guide/variables/
13
Include resources from filenoyesSee https://serverless.com/framework/docs/providers/aws/guide/variables/
14
Environment variablesyesyes
15
SSM store parametersyesyesWith serverless no need to provide the version number.
16
Omit version numbers when referencing SSM parametersnoyes
17
AWS secrets manageryesyes
18
PhpStorm support for CloudFormation in the configyesno
19
PhpStorm GUI to easily deploy and invokenoyeshttps://plugins.jetbrains.com/plugin/12115-serverless-framework-gui
20
Roles per functionyesyesServerless: possible via a plugin.
21
Deployment
22
Support multiple cloud providersnoyes
23
Deploy a single functionnoyes
24
Can deploy in one stepnoyes3 steps to deploy with SAM
25
CloudFormation supportyesyes
26
Auto-create the S3 bucketnoyes
27
File exclusionnoyes
28
Deploy multiple stagesnoyes
29
Deploy multiple stages to different AWS accountsnoyes
30
Integration with CodeDeployyes?
31
Deployment strategies (blue/green, canary)yesyes
32
Local development
33
Run in DockeryesyesSAM: 3s, Serverless: 9s. Need to test again with the latest serverless version which should be faster
34
Run API Gateway locallyyesno
https://github.com/dherault/serverless-offline/issues/570, Kong, https://github.com/dherault/serverless-offline/pull/648
35
Run the Lambda API locallyyes?
36
Invoke locally with fake S3/SQS/... eventsyes?
37
Support !Ref locallyyes?
38
Support !GetAtt locallyno?
39
Run DynamoDb locallyno?
40
Run SQS locallyno?
41
Tooling
42
View logsyesyes
43
Delete stacknoyes