https://github.com/louis70109/aws-serverless-authorizer
https://github.com/louis70109/aws-serverless-authorizer
authorizer aws flask python serverless
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/louis70109/aws-serverless-authorizer
- Owner: louis70109
- License: mit
- Created: 2020-04-18T12:47:59.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T20:38:43.000Z (about 2 years ago)
- Last Synced: 2025-01-31T22:11:27.226Z (4 months ago)
- Topics: authorizer, aws, flask, python, serverless
- Language: Python
- Size: 80.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# AWS-serverless-authorizer
- [Serverless framework](https://serverless.com/)
- Flask - [serverless-wsgi](https://github.com/louis70109/aws-serverless-authorizer/blob/master/serverless.yml#L28)
- API Gateway - [Authorizer](https://github.com/louis70109/aws-serverless-authorizer/blob/master/serverless.yml#L18)# Quick Start
1. 安裝全域的 `serverless` 指令或是之後你可以使用 `npx` 來避免安裝。
```bash=
npm install -g serverless
```2. 如果你還沒有用 [aws-cli](https://aws.amazon.com/tw/cli/) 的話你需要設定你的 **AWS** 憑證。
```bash=
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
```3. 安裝 serverless 相依套件以及 flask 套件。
```bash=
npm install
pip install -r requirements.txt
```4. 部署
下面兩個指令選一個用,含有 npx 的部分則是透過 npm 去遠端套件庫**暫時**使用套件的一個指令。
```bash
serverless deploy
# npx serverless deploy
```
# License[MIT](https://github.com/louis70109/aws-serverless-authorizer/blob/master/MIT-LICENSE)