ecs_composex icon indicating copy to clipboard operation
ecs_composex copied to clipboard

[FR] services.x-logging add Subscription Filter to x-kinesis or x-kinesis_firehose

Open JohnPreston opened this issue 3 years ago • 0 comments

As a user, I might want to funnel log groups to x-kinesis and/or x-kinesis_firehose

Describe the solution you'd like

services:
  myapp-to-log:
    x-logging:
      SubscriptionFilters:
        log-all:
          FilterPattern: "*"
          DestinationArn: x-kinesis::stream-01
        log-user-id:
          FilterPattern: "{$.userIdentity.type = Root}"
          DestinationArn: x-kinesis_firehose::stream-01
          
x-kinesis:
  stream-01:
    Properties: {}
x-kinesis_firehose:
  stream-01:
    Properties: {}

Each element in SubscriptionFilters would allow for original properties. By default, the IAM Role for cloudwatch will be re-created and permissions set accordingly.

JohnPreston avatar May 08 '22 09:05 JohnPreston