serverless-plugin-log-subscription icon indicating copy to clipboard operation
serverless-plugin-log-subscription copied to clipboard

Api Gateway logsubscription only works with both execution and access logs enabled

Open GoGoris opened this issue 3 years ago • 0 comments

Using the Api Gateway logsubscription support with only execution logging enabled fails with the error "Unresolved resource dependencies [ApiGatewayLogGroup] in the Resources block of the template" because serverless creates this logGroup conditionally based on logs.restApi.accessLogging.

To reproduce add the following config in your serverless.yml:

 logs:
    restApi:
      executionLogging: true
      accessLogging: false

The reverse problem probably exists as well when accessLogging is enabled without executionLogging.

GoGoris avatar Dec 30 '21 16:12 GoGoris