An open API service indexing awesome lists of open source software.

https://github.com/tertychnyy/awsclientbot

AWS Client Bot library
https://github.com/tertychnyy/awsclientbot

aws bot

Last synced: 6 months ago
JSON representation

AWS Client Bot library

Awesome Lists containing this project

README

          

AWS Client Bot for Python

[![Documentation Status](https://readthedocs.org/projects/awsclientbot/badge/?version=latest)](http://awsclientbot.readthedocs.io/en/latest/?badge=latest)

Use this library to push messages from AWS EC2 instance to Telegram via [@aws_client_bot](https://t.me/aws_client_bot).

Step 1. Get AWS Client Bot token
* Go to [@aws_client_bot](https://t.me/aws_client_bot),
* Set AWS credentials (this allows start/stop instances from [@aws_client_bot](https://t.me/aws_client_bot)),
* Send "Get token",
* Use token on step 2

Step 2. Set logger
Typical usage looks like this::

#!/usr/bin/env python

from awsclientbot import AWSClientBot

acb = AWSClientBot(token)
acb.push("Started")
my_long_running_function() <-- Replace this with your own function
acb.push("Done")