File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252 if : startsWith(github.ref, 'refs/tags/')
5353 with :
5454 files : dist/*.zip
55+
56+ - name : Deploy to Lambda
57+ uses : appleboy/lambda-action@v0.1.9
58+ with :
59+ aws_access_key_id : ${{ secrets.AWS_ACCESS_KEY_ID }}
60+ aws_secret_access_key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
61+ aws_region : us-east-1
62+ function_name : solesearch-api
63+ zip_file : $build_file
64+ timeout : 10
65+ handler : main.handler
66+ runtime : python3.12
67+ role : arn:aws:iam::930702711470:role/service-role/solesearch-api-role-qr34kqa5
68+ dry_run : true
69+ debug : true
Original file line number Diff line number Diff line change 11from fastapi import FastAPI
2-
3- # from mangum import Mangum
4- from starlette .middleware .sessions import SessionMiddleware
5-
2+ from mangum import Mangum
63from src .api .routes import auth , sneakers
4+ from starlette .middleware .sessions import SessionMiddleware
75
86app = FastAPI (
97 redoc_url = None ,
1412
1513app .include_router (sneakers .router )
1614app .include_router (auth .router )
17- # handler = Mangum(app)
15+ handler = Mangum (app )
You can’t perform that action at this time.
0 commit comments