(Automated) Testing can be seen as a pyramid of independent test levels, which are stacked onto each other.
I show examples of the testing types with the Serverless DSL architecture.
Test the generated CloudFormation
Test the create Resource
Unit Tests of the Lambda function
Tests of the physical Lambda function