Use Case I would like to monitor events from a Synology NFS mount on another system. Solution Python module to monitor and forward filesystem events to an AWS SQS queue, that my external system can monitor and act upon Install Python 3 on Synology To do this, visit the Synology Package Center, search for “python” and install   Then ssh into your Synology device and verify that python3 is available,

Example of monitoring an SQS queue for messages that an attribute instance_id, which is set to your EC2 instance. The python subscriber can be used to monitor a shared SQS and act upon messages targeted at a specific instance id. #!/usr/bin/env python3 import boto3 import requests import subprocess import os import time boto3.setup_default_session(region_name="${aws.region}") sqs = boto3.resource('sqs') response = requests.get('http://169.254.169.254/latest/meta-data/instance-id') instance_id = response.text build_bucket = "${aws.s3.bucket}" # Retrieving a queue by