Serverless 1.10 adds a mandatory function DependsOn for the LogGroup it creates per function. This requires the function to exist before setupProviderConfiguration. To make things more complex, we also use the serverless-webpack plugin, which requires that the handler file not be written until the createDeploymentArtifacts phase.
I've only tested this against serverless 1.10.0, but I believe it should work for earlier versions as well.
Serverless 1.10 adds a mandatory function DependsOn for the LogGroup it creates per function. This requires the function to exist before setupProviderConfiguration. To make things more complex, we also use the serverless-webpack plugin, which requires that the handler file not be written until the createDeploymentArtifacts phase.
I've only tested this against serverless 1.10.0, but I believe it should work for earlier versions as well.