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