ACloudGuru / serverless-plugin-cloudwatch-sumologic

Plugin which auto-subscribes a log delivery lambda function to lambda log groups created by serverless
MIT License
12 stars 15 forks source link

Fix deploy when using serverless 1.10 #10

Closed jacob-meacham closed 6 years ago

jacob-meacham commented 7 years ago

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.