Updating sls file - deployment working but dependencies not packages corectly

This commit is contained in:
Khalim Conn-Kowlessar 2023-07-09 08:14:58 +01:00
parent 9d60c8998e
commit fe8c37c179
3 changed files with 8130 additions and 3 deletions

8118
backend/package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

6
backend/package.json Normal file
View file

@ -0,0 +1,6 @@
{
"devDependencies": {
"serverless-offline": "^12.0.4",
"serverless-python-requirements": "^6.0.0"
}
}

View file

@ -6,7 +6,8 @@ provider:
region: eu-west-2
environment:
API_KEY: ${env:API_KEY}
ENVIRONMENT: ${self:provider.stage}
# ENVIRONMENT: ${self:provider.stage}
ENVIRONMENT: 'local'
SECRET_KEY: ${env:SECRET_KEY}
ALGORITHM: ${env:ALGORITHM}
@ -15,6 +16,7 @@ package:
plugins:
- serverless-python-requirements
- serverless-offline
custom:
pythonRequirements:
@ -24,8 +26,9 @@ functions:
app:
handler: app.main.handler
events:
- http: ANY /
- http: 'ANY {proxy+}'
- http:
path: /{proxy+}
method: ANY
# vpc:
# securityGroupIds:
# - sg-0abcd1234efgh5678