mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Merge pull request #190 from Hestia-Homes/main
Changing domain settings of serverless and correcting dockerfile
This commit is contained in:
commit
40f47796f3
2 changed files with 3 additions and 2 deletions
|
|
@ -11,4 +11,4 @@ COPY ./predictions.py ${LAMBDA_TASK_ROOT}/simulation_system/predictions.py
|
|||
COPY ./handlers/predictions_app.py ${LAMBDA_TASK_ROOT}/simulation_system/predictions_app.py
|
||||
|
||||
# Run off a lambda trigger
|
||||
CMD [ "prediction_app.handler" ]
|
||||
CMD [ "predictions_app.handler" ]
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ plugins:
|
|||
custom:
|
||||
customDomain:
|
||||
domainName: api.${self:provider.environment.DOMAIN_NAME}
|
||||
basePath: 'sapmodel'
|
||||
createRoute53Record: true
|
||||
certificateArn: ${ssm:/ssl_certificate_arn}
|
||||
|
||||
|
|
@ -29,7 +30,7 @@ functions:
|
|||
role: sapPredictionLambdaRole
|
||||
events:
|
||||
- http:
|
||||
path: /sapmodel
|
||||
path: /predict
|
||||
method: POST
|
||||
|
||||
resources:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue