File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1- from flask import Flask
1+ from flask import Flask , render_template
22app = Flask (__name__ )
33
4-
54@app .route ("/" )
65def cats ():
7- return "aws-lambda-python"
6+ return render_template ( 'index.html' )
87
98@app .route ("/dogs/<id>" )
109def dog (id ):
Original file line number Diff line number Diff line change 11service : " aws-lambda-python" # <name> of the service
22provider :
33 name : aws
4- runtime : python3.8
4+ runtime : python3.9
55 stage : prod
66 region : us-west-2
77 deploymentBucket :
@@ -56,8 +56,9 @@ custom:
5656 region : ${opt:region, self:provider.region}
5757 pythonRequirements :
5858 dockerizePip : true
59+ dockerImage : python:3.9
5960 wsgi :
60- app : api .app
61+ app : app .app
6162
6263package :
6364 patterns :
Original file line number Diff line number Diff line change 1+ < html >
2+ < body >
3+ < h1 > aws-python-landing</ h1 >
4+ </ body >
5+ </ html >
You can’t perform that action at this time.
0 commit comments