Skip to content

Commit

Permalink
Deploy to AWS Lambda using serverless
Browse files Browse the repository at this point in the history
  • Loading branch information
hammady committed May 12, 2024
1 parent f620b5c commit 25034eb
Show file tree
Hide file tree
Showing 6 changed files with 8,046 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
__pycache__
.env
.venv*
node_modules
.serverless
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,14 @@ each message.

To generate a token for the bot and identify the channel id, check the
official docs for [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot/wiki/Introduction-to-the-API).

### Deploy using AWS Lambda

- Install node 19
- Install Serverless framework: `npm install -g serverless`
- Install dependencies: `npm install`
- Deploy the app:

```bash
sls deploy --aws-profile <profile_name> --stage prod
```
Loading

0 comments on commit 25034eb

Please sign in to comment.