This bot have two actions: start/stop EC2 instance, basically the script will check on mysql database if user have permission to stop/start a specific instance.
Example: We'll allow email [email protected] with 123456 password to start/stop an instance i-1212121212121.
# python ec2bot.py telegramToken ec2Region accessKey secretKey mysqlHost mysqlUser mysqlPassword mysqlDB
# docker container run -d -e token='xxx' -e region='xxx' -e akey='accessKey' -e skey='secretKey' -e mysqlHost='xxx' -e mysqlUser='xxx' -e mysqlPassword='xxx' -e mysqlDB='xxx' nopp/telegram-bot-ec2:latest

Content type
Image
Digest
Size
39.1 MB
Last updated
over 8 years ago
docker pull nopp/telegram-bot-ec2:amd64-1.0