Skip to content
🤖 Runs the CFP Land Bot (https://t.me/cfplandbot) and the CFP Land Channel (https://t.me/cfpland)
Python Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cfpland_bot
.flake8
.gitignore
.travis.yml
LICENSE
Makefile
README.md
package-lock.json
package.json
pytest.ini
requirements-dev.txt
requirements-prod.txt
serverless.yml
vpc-resource.yaml

README.md

CFP Land, the Telegram Bot

Runs the CFP Land Bot and send new CFPs to the CFP Land channel.

Environment Variables

The environment variables are managed with AWS SSM and encrypted with an AWS KMS key. They are loaded during runtime to avoid unnecessary function redeploys.

First, create a KMS key:

$ aws kms create-key

Add the KeyId to the custom.KMS_KEY_ID.{env} key at serverless.yml file.

Create all the environment variables necessary – using the KeyId from the KMS key generate before:

$ aws ssm put-parameter --name /CFPLAND/PROD/DATABASE_URL --type String --value <url> --key-id <key-id>
$ aws ssm put-parameter --name /CFPLAND/PROD/TELEGRAM_TOKEN --type String --value <url> --key-id <key-id>

License

MIT.

You can’t perform that action at this time.