Merge pull request #190 from Hestia-Homes/main

Changing domain settings of serverless and correcting dockerfile
This commit is contained in:
KhalimCK 2023-08-31 17:16:46 +01:00 committed by GitHub
commit 40f47796f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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" ]

View file

@ -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: