I'm trying to setup a workflow in AWS.
An S3 bucket contains the following folders:
mybucket/todo
mybucket/wip <- work in progress
mybucket/done
Another task dumps files into the 'todo' folder for processing.
An Ubuntu EC2 instance has the bucket mounted via s3fs-fuse and inotifywait
is being used to watch the 'todo' folder for new files.
If I perform a touch /mybucket/todo
from within the EC2 instance, the inotifywait
job is triggered. However, if a file is uploaded to the S3 folder from another source, the job does not get triggered.
Does this seem like a sensible design? If so, can you see where I went wrong? Or should I just use cron
?