This script checks status of aws services in North America region and sends list of broken services to specified email address. It could be enhanced to monitor other regions as well. Script runs in Docker container. Docker container contains also local smtp server based on postfix.
docker build -t <namespace>/monitor:<tag> .
for example:
docker build -t enelen/monitor:v1 .
Docker container supports next environment variables:
- SMTP_SERVER - address of smtp server to use
- FROM_ADDRESS - script will send mails from this email address
- TO_ADDRESS - script will send mails to this email address
Example:
docker run -it -e TO_ADDRESS='[email protected]' -e FROM_ADDRESS='[email protected]' enelen/monitor:v1