# Install dependencies
make install
# Local test
make get_costs
# Test deployed lambda endpoint (from AWS API Gateway)
make test_endpoint
It requires a config.env
file to debug the function locally. The AWS deployment requires the following
environmental variables:
VULTR_API_KEY=<vutlr_api_key>
END_POINT=<vultr_endpoint>
TELEGRAM_API_KEY=<key>
make set_webohook
# or
bash run_set_webhook.sh
Dependencies:
- AWS account
- AWS CLI
- Create a custom role to deploy directly to AWS Lambda
make deploy
Note: HTTP deployment option is cheaper and sufficient for this use case.