-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37234b3
commit d83d239
Showing
6 changed files
with
47 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
# This allows the workflow to be manually triggered | ||
|
||
name: Deploy master branch | ||
|
||
jobs: | ||
deploy: | ||
name: deploy | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Deployment of your project | ||
- name: serverless deploy | ||
uses: suprgames/[email protected] | ||
with: | ||
command: deploy | ||
args: -v | ||
env: | ||
# To link with your Serverless Framework account, equivalent to login | ||
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }} | ||
# The AWS Credentials | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from mangum import Mangum | ||
from fastapi_project.main import app | ||
|
||
handler = Mangum(app) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
fastapi | ||
python-dotenv | ||
sqlalchemy | ||
psycopg2-binary | ||
fastapi | ||
uvicorn | ||
mangum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
org: kintaro | ||
app: demo-app-api | ||
service: demo-app-api | ||
org: code4mk | ||
app: demo-app-api-fastapi | ||
service: demo-app-api-fastapi | ||
|
||
frameworkVersion: '3' | ||
|
||
plugins: | ||
- serverless-python-requirements | ||
- serverless-wsgi | ||
provider: | ||
name: aws | ||
runtime: python3.9 | ||
region: us-west-2 | ||
runtime: python3.11 | ||
region: us-east-1 | ||
|
||
functions: | ||
demo_app_fastapi: | ||
handler: lambda_handler.handler | ||
handler: lamda_handler.handler | ||
events: | ||
- http: | ||
path: /{proxy+} | ||
method: any | ||
|