AWS Lambda function used to check internet connection status.
It sends a Telegram notifications every time the internet connection status changes.
In this project are used the following AWS services (all available in the free tier plan):
- Lambda
- DynamoDB
- API Gateway
- EventBridge
In order to easily deploy all the above services, it has been used serverless framework
The internet connection checks, implemented in the AWS Lambda function, can be triggered in two ways:
- automatically: through the AWS EventBridge, specifying a rate interval (like a cron job)
- manually: invoking a REST Api exposed by AWS API Gateway (this API is public! It should be better protect it with AWS IAM)
-
Create a Telegram Bot following the official docs
-
Install IDBot to get your
chat_id
-
Modify handler.js const with your values
-
Deploy all AWS Services running this command
serverless deploy