~Hi my cloudwatch eventRule is getting `InvalidEve...
# aws
b
Hi my cloudwatch eventRule is getting
InvalidEventPatternException: Event pattern is not valid. Reason: Match value must be String, number, true, false, or null
while trying to use below pattern. Is content filtering unavailable?
Oops, false alarm.
family
was array silly
Copy code
eventPattern: JSON.stringify({
                'source': ['aws.ecs'],
                'detail-type': ['ECS Task State Change'],
                'detail': {
                  'group': [family],
                  'lastStatus': ['STOPPED'],
                  'stoppedReason': ['Essential container in task exited'],
                  'containers': {'exitCode': [{'anything-but': 0}]}
                }
              })