mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
34 lines
622 B
YAML
34 lines
622 B
YAML
service: fastapi-lambda
|
|
|
|
provider:
|
|
name: aws
|
|
runtime: python3.10
|
|
region: eu-west-2
|
|
environment:
|
|
API_KEY: ${env:API_KEY}
|
|
ENVIRONMENT: ${self:provider.stage}
|
|
SECRET_KEY: ${env:SECRET_KEY}
|
|
ALGORITHM: ${env:ALGORITHM}
|
|
|
|
package:
|
|
individually: true
|
|
|
|
plugins:
|
|
- serverless-python-requirements
|
|
|
|
custom:
|
|
pythonRequirements:
|
|
dockerizePip: non-linux
|
|
|
|
functions:
|
|
app:
|
|
handler: app.main.handler
|
|
events:
|
|
- http: ANY /
|
|
- http: 'ANY {proxy+}'
|
|
# vpc:
|
|
# securityGroupIds:
|
|
# - sg-0abcd1234efgh5678
|
|
# subnetIds:
|
|
# - subnet-a1b2c3d4
|
|
# - subnet-e5f6g7h8
|