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