Rules prefix containing wildcard for triggering an event

Hello,
I am storing some json objects in S3, in a bucket similar to:

s3
└── 574ed85c055758
    └── 20161101T102943
        ├── article
        │   ├── original
        │   │   └── sm.json
        │   └── updated
        │       └── update.json
        └── upload
            ├── ingest
            │   └── media.mp3
            └── probe
                └── probe.json

Where the first folder in s3 bucket is the user.id and then we have many sub-folders from that where the client makes changes to the updated.json

What is the correct way to setup a function so that it is triggered when a specific deeply nested object has been modified across many different folders. i.e. can i specify a wild card so that and event is triggered on

///*/transcript/updated/updated.json >> trigger function

so something like:

functions:
  users:
    handler: users.handler
    events:
      - s3:
          bucket: s3
          event: s3:ObjectCreated:*
          rules:
            - prefix: /*/*/*/transcript/updated/
            - suffix: .json

any advice is much appreciated

You could use updated.json as suffix (without prefix) and will cover all updated.json files into your sub-folders.

functions:
  users:
    handler: users.handler
    events:
      - s3:
          bucket: s3
          event: s3:ObjectCreated:*
          rules:
            - suffix: updated.json

@khinester have you figured this out? I’m facing the same problem. tks

Couple more years have gone by – any way of solving this? I’ve got basically the same issue… need to trigger on all //original/.jpg files

This stack overflow post seems to indicate it’s simply something S3 can’t do…